diff options
author | megamage <none@none> | 2009-05-29 21:30:08 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-29 21:30:08 -0500 |
commit | 83d468c7ee8ae762a45762d67293bb4521c1d52f (patch) | |
tree | 07344ef8a150fcc9a43fd29bc1d6c063ef99e5e0 /src | |
parent | 38c22f419036c35076e6b725053eaedea1630681 (diff) |
*Always use idle motion as default for triggers.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Creature.cpp | 6 |
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()) |