Core/Auras: Fix incorrect use of GetUnitOwner() in DynObjAura::FillTargetMap
Port From (https://github.com/TrinityCore/TrinityCore/commit/07f51437fc9ddba2810c090caa76ab294bcf777b)
This commit is contained in:
@@ -2671,7 +2671,7 @@ namespace Game.Spells
|
|||||||
Cell.VisitAllObjects(GetDynobjOwner(), searcher, radius);
|
Cell.VisitAllObjects(GetDynobjOwner(), searcher, radius);
|
||||||
|
|
||||||
// by design WorldObjectSpellAreaTargetCheck allows not-in-world units (for spells) but for auras it is not acceptable
|
// 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)
|
foreach (var unit in targetList)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user