Confused

Confused is a debuff which causes controls to reverse. When applied to enemies it makes them move away from you rather than try to attack you, and it prevents enemies with ranged attacks from using them. Slimes, Bats and most walking enemies are vulnerable to being Confused.

Immune NPCs

 * All Town NPCs
 * All Bosses
 * All Casters
 * All Flying NPCs except Bats and Eyes
 * All Worms
 * All Water NPCs
 * All Plants
 * Antlion
 * Blazing Wheel
 * Dungeon Guardian
 * Mimic
 * Spike Ball

Trivia

 * The fact that Giant Bat can confuse you might be a reference to Pokemon, whereas Zubat can confuse your Pokemon.