Core/Auras: Fixed SPELL_AURA_LINKED_SUMMON summons not despawning when aura is removed from unit being removed from world

This commit is contained in:
Shauren
2023-05-27 16:17:39 +02:00
parent e71381728e
commit 3d3e94d8e4
@@ -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;