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:
UltraNix
2022-05-30 09:19:53 +02:00
committed by GitHub
parent 1e79b10b79
commit a0da7417a0

View File

@@ -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)