From 3d3e94d8e4351c694611776770b843fb59394b1e Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 27 May 2023 16:17:39 +0200 Subject: [PATCH] Core/Auras: Fixed SPELL_AURA_LINKED_SUMMON summons not despawning when aura is removed from unit being removed from world --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 84ccda7b15..93276151f8 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;