Core/Movement: Changed casting check in TargetedMovementGenerator to be able to freely manipulate cast+move interaction in scripts

This commit is contained in:
Shauren
2012-04-13 18:32:47 +02:00
parent 397d844883
commit 4b81de9d3a
@@ -135,7 +135,7 @@ bool TargetedMovementGeneratorMedium<T,D>::Update(T &owner, const uint32 & time_
} }
// prevent movement while casting spells with cast time or channel time // prevent movement while casting spells with cast time or channel time
if (owner.IsNonMeleeSpellCasted(false, false, true)) if (owner.HasUnitState(UNIT_STATE_CASTING))
{ {
if (!owner.IsStopped()) if (!owner.IsStopped())
owner.StopMoving(); owner.StopMoving();