From 98e32a041d08734c3ddbedf527491ec2bdee76b0 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 17 May 2009 10:07:11 -0500 Subject: *Do not clear unit movement flags when it is stunned/rooted --HG-- branch : trunk --- src/game/Unit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0588e5fe2a2..6e0eb316e51 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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()); -- cgit v1.2.3