Core/SAI: Remove reactState param from SMART_ACTION_WP_START (#27255)

Ref #26728

(cherry picked from commit 04909bada8)
This commit is contained in:
offl
2021-11-07 22:51:25 +02:00
committed by Shauren
parent 791b759332
commit ebcd45b7e1
4 changed files with 4 additions and 15 deletions
@@ -1898,16 +1898,6 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
if (e.action.wpStart.quest && !IsQuestValid(e, e.action.wpStart.quest))
return false;
// Allow "invalid" value 3 for a while to allow cleanup the values stored in the db for SMART_ACTION_WP_START.
// Remember to remove this once the clean is complete.
constexpr uint32 TEMPORARY_EXTRA_VALUE_FOR_DB_CLEANUP = 1;
if (e.action.wpStart.reactState > (REACT_AGGRESSIVE + TEMPORARY_EXTRA_VALUE_FOR_DB_CLEANUP))
{
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Creature " SI64FMTD " Event %u Action %u uses invalid React State %u, skipped.", e.entryOrGuid, e.event_id, e.GetActionType(), e.action.wpStart.reactState);
return false;
}
TC_SAI_IS_BOOLEAN_VALID(e, e.action.wpStart.run);
TC_SAI_IS_BOOLEAN_VALID(e, e.action.wpStart.repeat);
break;