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:
@@ -17930,7 +17930,9 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type, AuraApplication const* au
|
|||||||
|
|
||||||
if (GetTypeId() == TYPEID_UNIT)
|
if (GetTypeId() == TYPEID_UNIT)
|
||||||
{
|
{
|
||||||
|
GetMotionMaster()->Clear(false);
|
||||||
GetMotionMaster()->MoveIdle();
|
GetMotionMaster()->MoveIdle();
|
||||||
|
StopMoving();
|
||||||
|
|
||||||
if (charmer->GetTypeId() == TYPEID_PLAYER &&
|
if (charmer->GetTypeId() == TYPEID_PLAYER &&
|
||||||
charmer->getClass() == CLASS_WARLOCK)
|
charmer->getClass() == CLASS_WARLOCK)
|
||||||
|
|||||||
Reference in New Issue
Block a user