diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-07-22 10:38:23 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-07-22 10:38:23 +0200 |
commit | 07f51437fc9ddba2810c090caa76ab294bcf777b (patch) | |
tree | eed4603b767d29f71fd8adf3354ae320be3fb9a4 | |
parent | 515d3da181e105aceeba02d8dab46454be00f433 (diff) |
Core/Auras: Fix incorrect use of GetUnitOwner() in DynObjAura::FillTargetMap
Closes #26735
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuras.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 604f706d01a..daa08f1b95f 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -2404,7 +2404,7 @@ void DynObjAura::FillTargetMap(std::unordered_map<Unit*, uint32>& targets, Unit* Cell::VisitAllObjects(GetDynobjOwner(), searcher, radius); // by design WorldObjectSpellAreaTargetCheck allows not-in-world units (for spells) but for auras it is not acceptable - units.erase(std::remove_if(units.begin(), units.end(), [this](Unit* unit) { return !unit->IsSelfOrInSameMap(GetUnitOwner()); }), units.end()); + units.erase(std::remove_if(units.begin(), units.end(), [this](Unit* unit) { return !unit->IsSelfOrInSameMap(GetDynobjOwner()); }), units.end()); for (Unit* unit : units) { |