mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Revert "fix(Core/Spells): SPELL_ATTR1_IMMUNITY_PURGES_EFFECT should not remov…" (#20245)
This reverts commit 572be7d69f.
This commit is contained in:
@@ -5122,9 +5122,6 @@ void Unit::RemoveAurasByType(AuraType auraType, ObjectGuid casterGUID, Aura* exc
|
||||
if (aura != except && (!casterGUID || aura->GetCasterGUID() == casterGUID)
|
||||
&& ((negative && !aurApp->IsPositive()) || (positive && aurApp->IsPositive())))
|
||||
{
|
||||
if (aura->GetSpellInfo()->HasAttribute(SPELL_ATTR0_NO_IMMUNITIES))
|
||||
continue;
|
||||
|
||||
uint32 removedAuras = m_removedAurasCount;
|
||||
RemoveAura(aurApp);
|
||||
if (m_removedAurasCount > removedAuras + 1)
|
||||
@@ -5260,12 +5257,11 @@ void Unit::RemoveAurasWithMechanic(uint32 mechanic_mask, AuraRemoveMode removemo
|
||||
Aura const* aura = iter->second->GetBase();
|
||||
if (!except || aura->GetId() != except)
|
||||
{
|
||||
if (!aura->GetSpellInfo()->HasAttribute(SPELL_ATTR0_NO_IMMUNITIES))
|
||||
if (aura->GetSpellInfo()->GetAllEffectsMechanicMask() & mechanic_mask)
|
||||
{
|
||||
RemoveAura(iter, removemode);
|
||||
continue;
|
||||
}
|
||||
if (aura->GetSpellInfo()->GetAllEffectsMechanicMask() & mechanic_mask)
|
||||
{
|
||||
RemoveAura(iter, removemode);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
++iter;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user