Stop motion of players when fear/confuse fades
This commit is contained in:
parent
86f478283d
commit
53e80192cc
@ -8532,7 +8532,7 @@ void Unit::SetFeared(bool apply, ObjectGuid casterGuid, uint32 spellID, uint32 t
|
|||||||
|
|
||||||
GetMotionMaster()->MovementExpired(GetTypeId() == TYPEID_PLAYER);
|
GetMotionMaster()->MovementExpired(GetTypeId() == TYPEID_PLAYER);
|
||||||
if (GetTypeId() == TYPEID_PLAYER)
|
if (GetTypeId() == TYPEID_PLAYER)
|
||||||
InterruptMoving(true);
|
StopMoving(true);
|
||||||
|
|
||||||
if (GetTypeId() != TYPEID_PLAYER && IsAlive())
|
if (GetTypeId() != TYPEID_PLAYER && IsAlive())
|
||||||
{
|
{
|
||||||
@ -8577,7 +8577,7 @@ void Unit::SetConfused(bool apply, ObjectGuid casterGuid, uint32 spellID)
|
|||||||
|
|
||||||
GetMotionMaster()->MovementExpired(GetTypeId() == TYPEID_PLAYER);
|
GetMotionMaster()->MovementExpired(GetTypeId() == TYPEID_PLAYER);
|
||||||
if (GetTypeId() == TYPEID_PLAYER)
|
if (GetTypeId() == TYPEID_PLAYER)
|
||||||
InterruptMoving(true);
|
StopMoving(true);
|
||||||
|
|
||||||
if (GetTypeId() != TYPEID_PLAYER && IsAlive())
|
if (GetTypeId() != TYPEID_PLAYER && IsAlive())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user