Skip to content

Commit

Permalink
[Spell] Fix Anti-Magic Shell immunities. Closes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Metaphysical-Drama committed Feb 15, 2011
1 parent 4aa7d98 commit 8310722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/game/Entities/Unit/Unit.cpp
Expand Up @@ -11334,9 +11334,9 @@ bool Unit::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) con
// Check for immune to application of harmful magical effects
AuraEffectList const& immuneAuraApply = GetAuraEffectsByType(SPELL_AURA_MOD_IMMUNE_AURA_APPLY_SCHOOL);
for (AuraEffectList::const_iterator iter = immuneAuraApply.begin(); iter != immuneAuraApply.end(); ++iter)
if (spellInfo->Dispel == DISPEL_MAGIC && // Magic debuff
((*iter)->GetMiscValue() & GetSpellSchoolMask(spellInfo)) && // Check school
!IsPositiveEffect(spellInfo->Id, index)) // Harmful
if (spellInfo->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && !(spellInfo->AttributesEx & SPELL_ATTR1_UNK9) && // Magical debuff

This comment has been minimized.

Copy link
@A-Metaphysical-Drama

A-Metaphysical-Drama Aug 11, 2011

Author Contributor

Well, this is a 6 months old commit, you have to expect some problems with new TC revisions

((*iter)->GetMiscValue() & GetSpellSchoolMask(spellInfo)) && // Check school
!IsPositiveEffect(spellInfo->Id, index)) // Harmful
return true;
}

Expand Down

0 comments on commit 8310722

Please sign in to comment.