Fixes aura infinite loop

Port From (https://github.com/TrinityCore/TrinityCore/commit/9cb01a79046fce3f76835bb68bf66e4f3079e4bc)
This commit is contained in:
hondacrx
2022-02-22 18:37:01 -05:00
parent 839aad82d9
commit 98206ec201
3 changed files with 71 additions and 22 deletions
+5
View File
@@ -299,6 +299,11 @@ namespace Game.Spells
_target.SendMessageToSet(update, true);
}
public string GetDebugInfo()
{
return $"Base: {(GetBase() != null ? GetBase().GetDebugInfo() : "NULL")}\nTarget: {(GetTarget() != null ? GetTarget().GetDebugInfo() : "NULL")}";
}
public Unit GetTarget() { return _target; }
public Aura GetBase() { return _base; }