mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 21:50: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.
(cherry picked from commit 4f52f7d7c9)
This commit is contained in:
@@ -191,7 +191,6 @@ void SmartScript::OnReset()
|
||||
}
|
||||
ProcessEventsFor(SMART_EVENT_RESET);
|
||||
mLastInvoker.Clear();
|
||||
mCounterList.clear();
|
||||
}
|
||||
|
||||
void SmartScript::ResetBaseObject()
|
||||
@@ -4106,6 +4105,7 @@ void SmartScript::OnInitialize(WorldObject* obj, AreaTriggerEntry const* at, Sce
|
||||
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