Core/SAI: Temporarily allow SMART_ACTION_WP_START to specify parameter value 3 for reactState
Port From (https://github.com/TrinityCore/TrinityCore/commit/fc3e26fdfe68a7b1a7c0dd6f67dc545f40b9465e)
This commit is contained in:
@@ -1703,7 +1703,11 @@ namespace Game.AI
|
||||
if (e.Action.wpStart.quest != 0 && !IsQuestValid(e, e.Action.wpStart.quest))
|
||||
return false;
|
||||
|
||||
if (e.Action.wpStart.reactState > (uint)ReactStates.Aggressive)
|
||||
// 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.
|
||||
int TEMPORARY_EXTRA_VALUE_FOR_DB_CLEANUP = 1;
|
||||
|
||||
if (e.Action.wpStart.reactState > (uint)(ReactStates.Aggressive + TEMPORARY_EXTRA_VALUE_FOR_DB_CLEANUP))
|
||||
{
|
||||
Log.outError(LogFilter.ScriptsAi, $"SmartAIMgr: {e} uses invalid React State {e.Action.wpStart.reactState}, skipped.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user