[c2504] Improve 'NPCs gets stuck in melee animation while casting'. (z2469)