From 12fabb103c387297fb3681d2eb8a5e93930e534f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 30 May 2023 05:00:38 -0400 Subject: [PATCH] Core/Auras: Fixed SPELL_AURA_LINKED_SUMMON summons not despawning when aura is removed from unit being removed from world Port From (https://github.com/TrinityCore/TrinityCore/commit/3d3e94d8e4351c694611776770b843fb59394b1e) --- Source/Game/Spells/Auras/AuraEffect.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Spells/Auras/AuraEffect.cs b/Source/Game/Spells/Auras/AuraEffect.cs index 27925d148..35f32588c 100644 --- a/Source/Game/Spells/Auras/AuraEffect.cs +++ b/Source/Game/Spells/Auras/AuraEffect.cs @@ -5780,7 +5780,7 @@ namespace Game.Spells List nearbyEntries = target.GetCreatureListWithEntryInGrid(summonEntry); foreach (var creature in nearbyEntries) { - if (creature.GetOwner() == target) + if (creature.GetOwnerGUID() == target.GetGUID()) { creature.DespawnOrUnsummon(); break; @@ -5790,7 +5790,7 @@ namespace Game.Spells TempSummon tempSummon = creature.ToTempSummon(); if (tempSummon) { - if (tempSummon.GetSummoner() == target) + if (tempSummon.GetSummonerGUID() == target.GetGUID()) { tempSummon.DespawnOrUnsummon(); break;