From 6ea312d7480e6ce4aefa21fb4e29c4737181a346 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 30 Oct 2021 19:57:59 -0400 Subject: [PATCH] DBError follow-ups: Port From (https://github.com/TrinityCore/TrinityCore/commit/45766c3d6eb4f70dfa6fe58f99d046e280664480) --- Source/Game/AI/SmartScripts/SmartAIManager.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Game/AI/SmartScripts/SmartAIManager.cs b/Source/Game/AI/SmartScripts/SmartAIManager.cs index ca3140b9c..0a99fe7a1 100644 --- a/Source/Game/AI/SmartScripts/SmartAIManager.cs +++ b/Source/Game/AI/SmartScripts/SmartAIManager.cs @@ -490,8 +490,7 @@ namespace Game.AI if (e.GetScriptType() != SmartScriptType.TimedActionlist && e.GetEventType() != SmartEvents.Link && !EventHasInvoker(e.Event.type)) { Log.outError(LogFilter.Sql, $"SmartAIMgr: Entry {e.EntryOrGuid} SourceType {e.GetScriptType()} Event {e.GetEventType()} Action {e.GetActionType()} has invoker target, but event does not provide any invoker!"); - // allow this to load for now - // return false; + return false; } break; case SmartTargets.PlayerRange: @@ -1065,8 +1064,7 @@ namespace Game.AI if (e.GetScriptType() != SmartScriptType.TimedActionlist && e.GetEventType() != SmartEvents.Link && !EventHasInvoker(e.Event.type)) { Log.outError(LogFilter.Sql, $"SmartAIMgr: {e} has invoker cast action, but event does not provide any invoker!"); - // allow this to load for now - // return false; + return false; } // no break goto case SmartActions.AddAura;