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
2019-06-27 01:48:12 +02:00
parent 81939b9685
commit eeba12778b
2 changed files with 3 additions and 2 deletions

View File

@@ -3802,8 +3802,8 @@ void SmartScript::SetTimedActionList(SmartScriptHolder& e, uint32 entry, Unit* i
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();

View File

@@ -962,6 +962,7 @@ struct SmartAction
{
uint32 id;
uint32 timerType;
uint32 allowOverride;
} timedActionList;
struct