Core/Auras: Fix incorrect use of GetUnitOwner() in DynObjAura::FillTargetMap

Port From (https://github.com/TrinityCore/TrinityCore/commit/07f51437fc9ddba2810c090caa76ab294bcf777b)
This commit is contained in:
hondacrx
2021-07-22 07:47:40 -04:00
parent 4b142a08bd
commit 001b026bce
+1 -1
View File
@@ -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)
{