mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 21:20:01 -04:00
Core/SAI: Added a new event flag to allow events to NOT reset when the creature evades (SMART_EVENT_FLAG_DONT_RESET)
Closes #5568 Signed-off-by: Subv <s.v.h21@hotmail.com>
This commit is contained in:
@@ -108,8 +108,11 @@ void SmartScript::OnReset()
|
||||
ResetBaseObject();
|
||||
for (SmartAIEventList::iterator i = mEvents.begin(); i != mEvents.end(); ++i)
|
||||
{
|
||||
InitTimer((*i));
|
||||
(*i).runOnce = false;
|
||||
if (!((*i).event.event_flags & SMART_EVENT_FLAG_DONT_RESET))
|
||||
{
|
||||
InitTimer((*i));
|
||||
(*i).runOnce = false;
|
||||
}
|
||||
}
|
||||
ProcessEventsFor(SMART_EVENT_RESET);
|
||||
mLastInvoker = 0;
|
||||
|
||||
Reference in New Issue
Block a user