Skip to content

Commit 815a84d

Browse files
committed
Unit: Stop chasing the charmer to allow following him correctly after being charmed
1 parent 2d79f6d commit 815a84d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/game/Entities/Unit.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11300,6 +11300,10 @@ bool Unit::TakeCharmOf(Unit* charmed, uint32 spellId, bool advertised /*= true*/
1130011300
charmed->ClearInCombat();
1130111301
}
1130211302

11303+
MotionMaster* mm = charmed->GetMotionMaster();
11304+
if (mm->GetCurrentMovementGeneratorType() == CHASE_MOTION_TYPE)
11305+
mm->MovementExpired();
11306+
1130311307
if (UnitAI* ai = charmed->AI())
1130411308
ai->JustGotCharmed(this);
1130511309

0 commit comments

Comments
 (0)