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:
@@ -2653,7 +2653,7 @@ namespace Game.Spells
|
|||||||
UnitListSearcher searcher = new(GetUnitOwner(), targetList, check);
|
UnitListSearcher searcher = new(GetUnitOwner(), targetList, check);
|
||||||
Cell.VisitAllObjects(GetUnitOwner(), searcher, radius);
|
Cell.VisitAllObjects(GetUnitOwner(), 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(caster));
|
targetList.RemoveAll(unit => !unit.IsSelfOrInSameMap(GetUnitOwner()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user