aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-29 21:30:08 -0500
committermegamage <none@none>2009-05-29 21:30:08 -0500
commit83d468c7ee8ae762a45762d67293bb4521c1d52f (patch)
tree07344ef8a150fcc9a43fd29bc1d6c063ef99e5e0 /src
parent38c22f419036c35076e6b725053eaedea1630681 (diff)
*Always use idle motion as default for triggers.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Creature.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 840af9b4591..fc5b0436867 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -204,6 +204,12 @@ void Creature::SearchFormationAndPath()
if(!lowguid)
return;
+ if(isTrigger())
+ {
+ SetDefaultMovementType(IDLE_MOTION_TYPE);
+ return;
+ }
+
bool usePath = (GetDefaultMovementType() == WAYPOINT_MOTION_TYPE);
CreatureGroupInfoType::iterator frmdata = CreatureGroupMap.find(lowguid);
if(frmdata != CreatureGroupMap.end())