Core/Creatures: Allow triggers to move and made all current triggers not move in db
This commit is contained in:
@@ -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;
|
||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user