fix(Core/Pets): Master Demonologist should not be removed on pet resummon. (#9317)

Fixes #8994
This commit is contained in:
UltraNix
2021-11-30 11:03:04 +01:00
committed by GitHub
parent b3c7d52449
commit 8d579b54ea

View File

@@ -3235,7 +3235,7 @@ void Spell::EffectSummonPet(SpellEffIndex effIndex)
for (Unit::AuraApplicationMap::iterator i = myAuras.begin(); i != myAuras.end();)
{
Aura const* aura = i->second->GetBase();
if (!aura->IsPassive() && aura->CanBeSentToClient())
if (!aura->IsPassive() && !OldSummon->IsPetAura(aura) && aura->CanBeSentToClient())
OldSummon->RemoveAura(i);
else
++i;