Core/SAI: Execute SMART_EVENT_WAYPOINT_REACHED events only once
This commit is contained in:
@@ -419,7 +419,7 @@ bool SmartAI::IsEscortInvokerInRange()
|
||||
|
||||
void SmartAI::MovepointReached(uint32 id)
|
||||
{
|
||||
if (id != SMART_ESCORT_LAST_OOC_POINT)
|
||||
if (id != SMART_ESCORT_LAST_OOC_POINT && mLastWPIDReached != id)
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_WAYPOINT_REACHED, NULL, id);
|
||||
|
||||
mLastWPIDReached = id;
|
||||
|
||||
Reference in New Issue
Block a user