Core/SAI: Temporarily allow SMART_ACTION_WP_START to specify parameter value 3 for reactState

(cherry picked from commit 60379cf2c1)
This commit is contained in:
jackpoz
2021-07-18 22:01:24 +02:00
committed by Shauren
parent 0910bca34c
commit fc3e26fdfe
2 changed files with 9 additions and 2 deletions
@@ -1470,7 +1470,9 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
}
}
me->SetReactState((ReactStates)e.action.wpStart.reactState);
// Extra validation to ignore invalid values stored in the db, see comment at TEMPORARY_EXTRA_VALUE_FOR_DB_CLEANUP definition
if (e.action.wpStart.reactState <= REACT_AGGRESSIVE)
me->SetReactState((ReactStates)e.action.wpStart.reactState);
ENSURE_AI(SmartAI, me->AI())->StartPath(run, entry, repeat, unit);
uint32 quest = e.action.wpStart.quest;