Core/Creatures: Allow triggers to move and made all current triggers not move in db

This commit is contained in:
Shauren
2011-05-16 23:39:01 +02:00
parent def928a3bd
commit a290443738
2 changed files with 1 additions and 2 deletions
@@ -0,0 +1 @@
UPDATE `creature` c LEFT JOIN `creature_template` ct ON c.id=ct.`Entry` SET c.`MovementType`=0,c.`spawndist`=0 WHERE (ct.flags_extra & 128)!=0;
-2
View File
@@ -1558,8 +1558,6 @@ void ObjectMgr::LoadCreatures()
sLog->outErrorDb("Table `creature` have creature (GUID: %u Entry: %u) with `MovementType`=1 (random movement) but with `spawndist`=0, replace by idle movement type (0).", guid, data.id); sLog->outErrorDb("Table `creature` have creature (GUID: %u Entry: %u) with `MovementType`=1 (random movement) but with `spawndist`=0, replace by idle movement type (0).", guid, data.id);
data.movementType = IDLE_MOTION_TYPE; data.movementType = IDLE_MOTION_TYPE;
} }
else if (cInfo->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER)
data.movementType = IDLE_MOTION_TYPE;
} }
else if (data.movementType == IDLE_MOTION_TYPE) else if (data.movementType == IDLE_MOTION_TYPE)
{ {