aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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())