*Do not clear unit movement flags when it is stunned/rooted
--HG-- branch : trunk
This commit is contained in:
1 parent
d0a50c9d55
commit
98e32a041d
3 files changed
+17
-3
No files matched your search
+3
-3
@@ -13251,8 +13251,8 @@ void Unit::SetStunned(bool apply)
|
||||
// Creature specific
|
||||
if(GetTypeId() != TYPEID_PLAYER)
|
||||
((Creature*)this)->StopMoving();
|
||||
else
|
||||
SetUnitMovementFlags(0); //Clear movement flags
|
||||
//else
|
||||
// SetUnitMovementFlags(0); //Clear movement flags
|
||||
|
||||
WorldPacket data(SMSG_FORCE_MOVE_ROOT, 8);
|
||||
data.append(GetPackGUID());
|
||||
@@ -13284,7 +13284,7 @@ void Unit::SetRooted(bool apply)
|
||||
|
||||
if(GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
SetUnitMovementFlags(0);
|
||||
//SetUnitMovementFlags(0);
|
||||
|
||||
WorldPacket data(SMSG_FORCE_MOVE_ROOT, 10);
|
||||
data.append(GetPackGUID());
|
||||
|
||||
Reference in new issue
Block a user