Improve "NPCs gets stuck in melee animation while casting".