From 001b026bce92e36af8dff5146cb37267ab2c531b Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 22 Jul 2021 07:47:40 -0400 Subject: [PATCH] Core/Auras: Fix incorrect use of GetUnitOwner() in DynObjAura::FillTargetMap Port From (https://github.com/TrinityCore/TrinityCore/commit/07f51437fc9ddba2810c090caa76ab294bcf777b) --- Source/Game/Spells/Auras/Aura.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Spells/Auras/Aura.cs b/Source/Game/Spells/Auras/Aura.cs index 7a33141bd..a053b954a 100644 --- a/Source/Game/Spells/Auras/Aura.cs +++ b/Source/Game/Spells/Auras/Aura.cs @@ -2671,7 +2671,7 @@ namespace Game.Spells Cell.VisitAllObjects(GetDynobjOwner(), searcher, radius); // by design WorldObjectSpellAreaTargetCheck allows not-in-world units (for spells) but for auras it is not acceptable - targetList.RemoveAll(unit => !unit.IsSelfOrInSameMap(GetOwner())); + targetList.RemoveAll(unit => !unit.IsSelfOrInSameMap(GetDynobjOwner())); foreach (var unit in targetList) {