Core/Movement: Changed casting check in TargetedMovementGenerator to be able to freely manipulate cast+move interaction in scripts
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user