Fixes so errors

This commit is contained in:
hondacrx
2021-06-25 10:40:44 -04:00
parent 229ee1b497
commit 345a2974ea
2 changed files with 2 additions and 2 deletions
@@ -489,7 +489,7 @@ namespace Game.AI
case SmartTargets.InvokerParty: case SmartTargets.InvokerParty:
if (e.GetScriptType() != SmartScriptType.TimedActionlist && e.GetEventType() != SmartEvents.Link && !EventHasInvoker(e.Event.type)) 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 // allow this to load for now
// return false; // return false;
} }
+1 -1
View File
@@ -95,7 +95,7 @@ namespace Scripts.Spells.Mage
{ {
Unit unit = GetTarget(); Unit unit = GetTarget();
_health = unit.GetHealth(); _health = unit.GetHealth();
_pos = unit.GetPosition(); _pos = new(unit.GetPosition());
} }
void AfterRemove(AuraEffect aurEff, AuraEffectHandleModes mode) void AfterRemove(AuraEffect aurEff, AuraEffectHandleModes mode)