Core/Creature: apply feedback from TC pull request
This commit is contained in:
1 parent
3ae077b573
commit
09c6ed8d1e
3 files changed
+7
-6
No files matched your search
@@ -491,7 +491,8 @@ void Unit::MoveAdvanceTo(Unit* target)
|
||||
return;
|
||||
|
||||
// Do not reposition ourself when we are not allowed to move
|
||||
if (IsMovementPreventedByCasting() || isMoving() || !CanFreeMove())
|
||||
if ((IsMovementPreventedByCasting() || isMoving() || !CanFreeMove()) &&
|
||||
GetMotionMaster()->GetCurrentMovementGeneratorType() != CHASE_MOTION_TYPE)
|
||||
return;
|
||||
|
||||
float x, y, z;
|
||||
|
||||
Reference in new issue
Block a user