Core/SAI: Fixed event SMART_EVENT_WAYPOINT_ENDED

* also moved "any" pointid to 0xFFFFFFFF for waypoint sai events:
* SMART_EVENT_WAYPOINT_REACHED
* SMART_EVENT_WAYPOINT_RESUMED
* SMART_EVENT_WAYPOINT_PAUSED
* SMART_EVENT_WAYPOINT_STOPPED
* SMART_EVENT_WAYPOINT_ENDED
Port From (https://github.com/TrinityCore/TrinityCore/commit/76d2f29e4e4c0e14a014676aafff2f8836f96ea0)
This commit is contained in:
hondacrx
2023-06-30 08:31:39 -04:00
parent 67aa6af3f0
commit a9544c4163
2 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -3374,7 +3374,7 @@ namespace Game.AI
case SmartEvents.WaypointStopped:
case SmartEvents.WaypointEnded:
{
if (_me == null || (e.Event.waypoint.pointID != 0 && var0 != e.Event.waypoint.pointID) || (e.Event.waypoint.pathID != 0 && var1 != e.Event.waypoint.pathID))
if (_me == null || (e.Event.waypoint.pointID != 0xFFFFFFFF && var0 != e.Event.waypoint.pointID) || (e.Event.waypoint.pathID != 0 && var1 != e.Event.waypoint.pathID))
return;
ProcessAction(e, unit);
break;