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)
This commit is contained in:
hondacrx
2021-05-11 11:40:24 -04:00
parent 8847de54d5
commit 5cbd815f53
+1 -1
View File
@@ -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;
}
}