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:
@@ -6105,14 +6105,14 @@ void AuraEffect::HandleLinkedSummon(AuraApplication const* aurApp, uint8 mode, b
|
|||||||
target->GetCreatureListWithEntryInGrid(nearbyEntries, summonEntry);
|
target->GetCreatureListWithEntryInGrid(nearbyEntries, summonEntry);
|
||||||
for (auto creature : nearbyEntries)
|
for (auto creature : nearbyEntries)
|
||||||
{
|
{
|
||||||
if (creature->GetOwner() == target)
|
if (creature->GetOwnerGUID() == target->GetGUID())
|
||||||
{
|
{
|
||||||
creature->DespawnOrUnsummon();
|
creature->DespawnOrUnsummon();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (TempSummon* tempSummon = creature->ToTempSummon())
|
else if (TempSummon* tempSummon = creature->ToTempSummon())
|
||||||
{
|
{
|
||||||
if (tempSummon->GetSummoner() == target)
|
if (tempSummon->GetSummonerGUID() == target->GetGUID())
|
||||||
{
|
{
|
||||||
tempSummon->DespawnOrUnsummon();
|
tempSummon->DespawnOrUnsummon();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user