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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user