Core/SAI: add param3 to SMART_ACTION_CALL_TIMED_ACTIONLIST to allow it to override a currently running actionlist.

This commit is contained in:
Wyrserth authored and Ovahlord committed 2020-01-27 03:23:38 +01:00
1 parent 65145b375a
commit e410c3498b
2 files changed
+3 -2

No files matched your search

@@ -3860,8 +3860,8 @@ void SmartScript::SetScript9(SmartScriptHolder& e, uint32 entry)
return;
}
// Do NOT allow to start a new actionlist if a previous one is already running. We need to always finish the current actionlist
if (!mTimedActionList.empty())
// Do NOT allow to start a new actionlist if a previous one is already running, unless explicitly allowed. We need to always finish the current actionlist
if (!e.action.timedActionList.allowOverride && !mTimedActionList.empty())
return;
mTimedActionList.clear();