*Do not allow process script immediately in waypoint movement to prevent crash of mtmap.
--HG-- branch : trunk
This commit is contained in:
@@ -187,8 +187,9 @@ WaypointMovementGenerator<Creature>::Update(Creature &unit, const uint32 &diff)
|
|||||||
if(node->delay)
|
if(node->delay)
|
||||||
i_nextMoveTime.Reset(node->delay);
|
i_nextMoveTime.Reset(node->delay);
|
||||||
|
|
||||||
|
//note: disable "start" for mtmap
|
||||||
if(node->event_id && rand()%100 < node->event_chance)
|
if(node->event_id && rand()%100 < node->event_chance)
|
||||||
sWorld.ScriptsStart(sWaypointScripts, node->event_id, &unit, NULL);
|
sWorld.ScriptsStart(sWaypointScripts, node->event_id, &unit, NULL, false);
|
||||||
|
|
||||||
MovementInform(unit);
|
MovementInform(unit);
|
||||||
unit.UpdateWaypointID(i_currentNode);
|
unit.UpdateWaypointID(i_currentNode);
|
||||||
|
|||||||
Reference in New Issue
Block a user