Core/SAI: Make 'no, thanks' actions deprecated

Port From (https://github.com/TrinityCore/TrinityCore/commit/6ac4e9dd4a9fbe74113810d0f4942ebdb9946d8a)
This commit is contained in:
hondacrx
2022-05-30 13:11:20 -04:00
parent 93bd45bbf8
commit 410caaae41
@@ -2166,6 +2166,24 @@ namespace Game.AI
return false;
}
// Additional check for deprecated
switch (e.GetActionType())
{
// Deprecated
case SmartActions.SetSwim:
case SmartActions.OverrideScriptBaseObject:
case SmartActions.ResetScriptBaseObject:
case SmartActions.SetCanFly:
case SmartActions.RemoveAurasByType:
case SmartActions.SetSightDist:
case SmartActions.Flee:
case SmartActions.RemoveAllGameobjects:
Log.outWarn(LogFilter.Sql, $"SmartAIMgr: Deprecated action_type: {e}, it might be removed in the future, loaded for now.");
break;
default:
break;
}
if (!CheckUnusedActionParams(e))
return false;