Tesla Tower

 is a furniture item that, when placed and right-clicked, creates an electrical charge around it, that damages the enemies. You can buy it from Magician during hardmode.