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)
This commit is contained in:
@@ -5780,7 +5780,7 @@ namespace Game.Spells
|
|||||||
List<Creature> nearbyEntries = target.GetCreatureListWithEntryInGrid(summonEntry);
|
List<Creature> nearbyEntries = target.GetCreatureListWithEntryInGrid(summonEntry);
|
||||||
foreach (var creature in nearbyEntries)
|
foreach (var creature in nearbyEntries)
|
||||||
{
|
{
|
||||||
if (creature.GetOwner() == target)
|
if (creature.GetOwnerGUID() == target.GetGUID())
|
||||||
{
|
{
|
||||||
creature.DespawnOrUnsummon();
|
creature.DespawnOrUnsummon();
|
||||||
break;
|
break;
|
||||||
@@ -5790,7 +5790,7 @@ namespace Game.Spells
|
|||||||
TempSummon tempSummon = creature.ToTempSummon();
|
TempSummon tempSummon = creature.ToTempSummon();
|
||||||
if (tempSummon)
|
if (tempSummon)
|
||||||
{
|
{
|
||||||
if (tempSummon.GetSummoner() == target)
|
if (tempSummon.GetSummonerGUID() == target.GetGUID())
|
||||||
{
|
{
|
||||||
tempSummon.DespawnOrUnsummon();
|
tempSummon.DespawnOrUnsummon();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user