Core/Creature: apply feedback from TC pull request

This commit is contained in:
Ovalord committed 2018-01-21 16:43:28 +01:00
1 parent 3ae077b573
commit 09c6ed8d1e
3 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -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;