fix(Core/Units): Clear any movement on charm - vol. 2. (#11897)
* fix(Core/Units): Clear any movement on charm - vol. 2. Fixes #11880 * Update.
This commit is contained in:
parent
1e79b10b79
commit
a0da7417a0
1 changed files with 2 additions and 0 deletions
|
|
@ -17930,7 +17930,9 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type, AuraApplication const* au
|
|||
|
||||
if (GetTypeId() == TYPEID_UNIT)
|
||||
{
|
||||
GetMotionMaster()->Clear(false);
|
||||
GetMotionMaster()->MoveIdle();
|
||||
StopMoving();
|
||||
|
||||
if (charmer->GetTypeId() == TYPEID_PLAYER &&
|
||||
charmer->getClass() == CLASS_WARLOCK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue