aboutsummaryrefslogtreecommitdiff
path: root/src/game/MotionMaster.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-21 17:24:22 -0500
committermegamage <none@none>2009-05-21 17:24:22 -0500
commit2280ca66b81aa7c856807d298d1cf2d84355a94e (patch)
treea2dae36031abaa9d773b4b763446bf7e4078f0fb /src/game/MotionMaster.cpp
parent239919abb2036c7cd56ecbc4003dd39a03b09830 (diff)
*Set reactpassive when creature is calling for assistance.
--HG-- branch : trunk
Diffstat (limited to 'src/game/MotionMaster.cpp')
-rw-r--r--src/game/MotionMaster.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp
index f8241987d16..3a7832fe914 100644
--- a/src/game/MotionMaster.cpp
+++ b/src/game/MotionMaster.cpp
@@ -375,6 +375,8 @@ MotionMaster::MoveSeekAssistance(float x, float y, float z)
{
DEBUG_LOG("Creature (Entry: %u GUID: %u) seek assistance (X: %f Y: %f Z: %f)",
i_owner->GetEntry(), i_owner->GetGUIDLow(), x, y, z );
+ i_owner->AttackStop();
+ ((Creature*)i_owner)->SetReactState(REACT_PASSIVE);
Mutate(new AssistanceMovementGenerator(x,y,z), MOTION_SLOT_ACTIVE);
}
}