From a23a1524927c088cf1e61799cb821c49f506df7a Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 30 May 2022 13:06:22 -0400 Subject: [PATCH] DB/SAI: Make SMART_EVENT_EVENT_PHASE_CHANGE deprecated; avoid AddAura, re-handle equipment in few scripts Port From (https://github.com/TrinityCore/TrinityCore/commit/2beb606cdfc168bec14f1af398fad04a3ec0baf7) --- 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 27fa8e09c..79f326822 100644 --- a/Source/Game/AI/SmartScripts/SmartAIManager.cs +++ b/Source/Game/AI/SmartScripts/SmartAIManager.cs @@ -1342,6 +1342,17 @@ namespace Game.AI Log.outError(LogFilter.ScriptsAi, "SmartAIMgr: Not handled event_type({0}), Entry {1} SourceType {2} Event {3} Action {4}, skipped.", e.GetEventType(), e.EntryOrGuid, e.GetScriptType(), e.EventId, e.GetActionType()); return false; } + + // Additional check for deprecated + switch (e.GetEventType()) + { + // Deprecated + case SmartEvents.PhaseChange: + Log.outWarn(LogFilter.Sql, "SmartAIMgr: Deprecated event_type: {e}, it might be removed in the future, loaded for now."); + break; + default: + break; + } } if (!CheckUnusedEventParams(e))