Core/SAI: Fix SMART_EVENT_WAYPOINT_START not being called at every waypoint checking wrong path id parameter
Port From (https://github.com/TrinityCore/TrinityCore/commit/c2d2df96dbe8e31e27283f73bad576ab42a3d579)
This commit is contained in:
@@ -3493,13 +3493,13 @@ namespace Game.AI
|
||||
break;
|
||||
}
|
||||
case SmartEvents.TransportRelocate:
|
||||
case SmartEvents.WaypointStart:
|
||||
{
|
||||
if (e.Event.waypoint.pathID != 0 && var0 != e.Event.waypoint.pathID)
|
||||
if (e.Event.transportRelocate.pointID != 0 && var0 != e.Event.transportRelocate.pointID)
|
||||
return;
|
||||
ProcessAction(e, unit, var0);
|
||||
break;
|
||||
}
|
||||
case SmartEvents.WaypointStart:
|
||||
case SmartEvents.WaypointReached:
|
||||
case SmartEvents.WaypointResumed:
|
||||
case SmartEvents.WaypointPaused:
|
||||
|
||||
Reference in New Issue
Block a user