Caster AI

Caster AI is an AI followed by a variety of enemies.

Behavior
Casters typically perform the following actions in succession after their initial spawn:


 * 1) Fire 3 projectiles towards the player in succession
 * 2) Pause for about 3 seconds after firing
 * 3) Teleport to another on-screen location, beginning the cycle again.


 * If damage is taken while casting, a Caster will become stunned for 3 seconds unless damaged again -- which will reset the 3 second teleportation countdown.
 * Casters will never walk or jump. Their only method of movement is teleporting.
 * Casters' projectiles travel through all block types, but can be destroyed by a single swipe with any weapon or tool.

Strategies
Using a fast weapon which attacks continuously while holding the attack button makes for an effective shield against Casters' projectiles. Weapons like the Muramasa or Staff of Regrowth will work perfectly (even Pickaxes, Hammers, or Axes will work reasonably well, as their swings similarly don't require individual clicks).

After Casters have fired their 3-projectile volley, there is a 3-second gap until they teleport; this is the perfect time to attack. Once you have started attacking, make sure you don't stop for too long, or else they will teleport again.

Sometimes it is best to shield off their attacks when they are far away or in a hard-to-reach area, and wait until they teleport within attack range.