From c3b1daca3fe88fc69e36e8bb31905ef08c8aaa3c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 30 May 2022 14:18:50 -0400 Subject: [PATCH] DB/SAI: Replace SMART_ACTION_SEND_GO_CUSTOM_ANIM with GameObjectActions Port From (https://github.com/TrinityCore/TrinityCore/commit/3cfca163598b604ac8afe76efa6a3062c8fc087d) --- Source/Game/AI/SmartScripts/SmartAIManager.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Game/AI/SmartScripts/SmartAIManager.cs b/Source/Game/AI/SmartScripts/SmartAIManager.cs index 1c920dbce..a65e5a2c0 100644 --- a/Source/Game/AI/SmartScripts/SmartAIManager.cs +++ b/Source/Game/AI/SmartScripts/SmartAIManager.cs @@ -2109,6 +2109,17 @@ namespace Game.AI return false; } + // Additional check for deprecated + switch (e.GetActionType()) + { + // Deprecated + case SmartActions.SendGoCustomAnim: + 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;