Core/UnitAI: Checks in DoCastVictim

Consider triggered flag and unit state