From 5cbd815f530e6bfe163bde01f0b79e2701f59f92 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 11 May 2021 11:40:24 -0400 Subject: [PATCH] Core/Auras: Use owner instead of caster for same map check in SPELL_EFFECT_APPLY_AREA_AURA_SUMMONS Port From (https://github.com/TrinityCore/TrinityCore/commit/63fa66620e7effb1156140fdd7c7ad40af627dd7) --- 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 491b4b946..a2f08a51c 100644 --- a/Source/Game/Spells/Auras/Aura.cs +++ b/Source/Game/Spells/Auras/Aura.cs @@ -2653,7 +2653,7 @@ namespace Game.Spells UnitListSearcher searcher = new(GetUnitOwner(), targetList, check); Cell.VisitAllObjects(GetUnitOwner(), searcher, radius); // by design WorldObjectSpellAreaTargetCheck allows not-in-world units (for spells) but for auras it is not acceptable - targetList.RemoveAll(unit => !unit.IsSelfOrInSameMap(caster)); + targetList.RemoveAll(unit => !unit.IsSelfOrInSameMap(GetUnitOwner())); break; } }