mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 06:29:50 -04:00
Game/SmartScripts: Reset counter in SAI only on Initialize. (#24489)
* Game/SmartScripts: Reset counter in SAI only on Initialize. * Game/SmartScripts: Reset counter in SAI only on Initialize.
This commit is contained in:
@@ -179,7 +179,6 @@ void SmartScript::OnReset()
|
||||
}
|
||||
ProcessEventsFor(SMART_EVENT_RESET);
|
||||
mLastInvoker.Clear();
|
||||
mCounterList.clear();
|
||||
}
|
||||
|
||||
void SmartScript::ResetBaseObject()
|
||||
@@ -3761,6 +3760,7 @@ void SmartScript::OnInitialize(WorldObject* obj, AreaTriggerEntry const* at)
|
||||
ProcessEventsFor(SMART_EVENT_AI_INIT);
|
||||
InstallEvents();
|
||||
ProcessEventsFor(SMART_EVENT_JUST_CREATED);
|
||||
mCounterList.clear();
|
||||
}
|
||||
|
||||
void SmartScript::OnMoveInLineOfSight(Unit* who)
|
||||
|
||||
Reference in New Issue
Block a user