From 345a2974ea92cea4d6bcae2fe49ec5758fa96f79 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 25 Jun 2021 10:40:44 -0400 Subject: [PATCH] Fixes so errors --- Source/Game/AI/SmartScripts/SmartAIManager.cs | 2 +- Source/Scripts/Spells/Mage.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/AI/SmartScripts/SmartAIManager.cs b/Source/Game/AI/SmartScripts/SmartAIManager.cs index 0c1efc235..8391da2a5 100644 --- a/Source/Game/AI/SmartScripts/SmartAIManager.cs +++ b/Source/Game/AI/SmartScripts/SmartAIManager.cs @@ -489,7 +489,7 @@ namespace Game.AI case SmartTargets.InvokerParty: 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 action does not provide any invoker!"); + Log.outError(LogFilter.Sql, $"SmartAIMgr: Entry {e.EntryOrGuid} SourceType {e.GetScriptType()} Event {e.GetEventType()} Action {e.GetActionType()} has invoker target, but action does not provide any invoker!"); // allow this to load for now // return false; } diff --git a/Source/Scripts/Spells/Mage.cs b/Source/Scripts/Spells/Mage.cs index 162faf6d1..a9836d317 100644 --- a/Source/Scripts/Spells/Mage.cs +++ b/Source/Scripts/Spells/Mage.cs @@ -95,7 +95,7 @@ namespace Scripts.Spells.Mage { Unit unit = GetTarget(); _health = unit.GetHealth(); - _pos = unit.GetPosition(); + _pos = new(unit.GetPosition()); } void AfterRemove(AuraEffect aurEff, AuraEffectHandleModes mode)