diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-05-27 16:17:39 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-05-27 16:17:39 +0200 |
commit | 3d3e94d8e4351c694611776770b843fb59394b1e (patch) | |
tree | baea351cf428effb29740af5a556b03988c735c7 /src | |
parent | e71381728ef31dad64c5aa60227f0cc22d0b101f (diff) |
Core/Auras: Fixed SPELL_AURA_LINKED_SUMMON summons not despawning when aura is removed from unit being removed from world
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 84ccda7b15e..93276151f8f 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -6105,14 +6105,14 @@ void AuraEffect::HandleLinkedSummon(AuraApplication const* aurApp, uint8 mode, b target->GetCreatureListWithEntryInGrid(nearbyEntries, summonEntry); for (auto creature : nearbyEntries) { - if (creature->GetOwner() == target) + if (creature->GetOwnerGUID() == target->GetGUID()) { creature->DespawnOrUnsummon(); break; } else if (TempSummon* tempSummon = creature->ToTempSummon()) { - if (tempSummon->GetSummoner() == target) + if (tempSummon->GetSummonerGUID() == target->GetGUID()) { tempSummon->DespawnOrUnsummon(); break; |