aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland/nagrand.cpp
diff options
context:
space:
mode:
authorVenugh <venugh@gmx.net>2012-02-23 11:50:58 +0100
committerVenugh <venugh@gmx.net>2012-02-23 11:50:58 +0100
commit1cac01b3df83b24e90ef101630316836a79ee792 (patch)
tree1a21a963f26a45ff387f48dbe372504df6122ae0 /src/server/scripts/Outland/nagrand.cpp
parent9219625243bc9f63e5a152e6cda1043cfaade201 (diff)
Core/Movement: Use SetWalk(true/false) instead of AddUnit/RemoveUnit.
Diffstat (limited to 'src/server/scripts/Outland/nagrand.cpp')
-rw-r--r--src/server/scripts/Outland/nagrand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Outland/nagrand.cpp b/src/server/scripts/Outland/nagrand.cpp
index 668db2efcbb..f1aaf82cb67 100644
--- a/src/server/scripts/Outland/nagrand.cpp
+++ b/src/server/scripts/Outland/nagrand.cpp
@@ -258,7 +258,7 @@ public:
if (summoned->isTotem())
return;
- summoned->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
+ summoned->SetWalk(false);
summoned->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ());
summoned->AI()->AttackStart(me);
@@ -603,7 +603,7 @@ public:
if (summoned->isTotem())
return;
- summoned->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
+ summoned->SetWalk(false);
summoned->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ());
summoned->AI()->AttackStart(me);
}