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:
hondacrx
2022-04-28 10:36:37 -04:00
parent 4c6ba41fe8
commit ec88268d0f
3 changed files with 7 additions and 18 deletions
+2 -2
View File
@@ -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: