Skip to content

Commit

Permalink
Revert "Merge pull request #16483 from Treeston/3.3.5-debuffimmunity"…
Browse files Browse the repository at this point in the history
… to fix #16589 while I investigate the retail behavior of SPELL_ATTR_0_UNAFFECTED_BY_INVULERABILITY further.

This reverts commit d67e877, reversing
changes made to cfed2d7.

(cherry picked from commit 26bbba4)
  • Loading branch information
Treeston authored and Shauren committed Apr 5, 2016
1 parent f63db31 commit 60b98ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/server/game/Spells/Auras/SpellAuraEffects.cpp
Expand Up @@ -3568,7 +3568,7 @@ void AuraEffect::HandleAuraModSchoolImmunity(AuraApplication const* aurApp, uint
&& !iter->second->IsPositive() //Don't remove positive spells
&& spell->Id != GetId()) //Don't remove self
{
target->RemoveAura(iter, AURA_REMOVE_BY_ENEMY_SPELL);
target->RemoveAura(iter);
}
else
++iter;
Expand Down
12 changes: 4 additions & 8 deletions src/server/game/Spells/SpellInfo.cpp
Expand Up @@ -1583,18 +1583,14 @@ bool SpellInfo::CanDispelAura(SpellInfo const* aura) const
if (Attributes & SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY && !aura->IsDeathPersistent())
return true;

// These auras (Cyclone for example) are not dispelable
if (aura->HasAttribute(SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE))
return false;

// Divine Shield etc can dispel auras if they don't ignore school immunity
if (HasAttribute(SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY) && !aura->IsDeathPersistent())
return true;

// These auras (like Divine Shield) can't be dispelled
if (aura->HasAttribute(SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY))
return false;

// These auras (Cyclone for example) are not dispelable
if (aura->HasAttribute(SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE))
return false;

return true;
}

Expand Down

0 comments on commit 60b98ec

Please sign in to comment.