diff options
author | Sebastian Valle Herrera <subv2112@gmail.com> | 2014-07-08 10:15:18 -0500 |
---|---|---|
committer | Sebastian Valle Herrera <subv2112@gmail.com> | 2014-07-08 10:15:18 -0500 |
commit | ffdb561b0a70871e27724da0c98839806a2ba2f7 (patch) | |
tree | 4ad7c16c04631173a83e153d5d50c4060980d681 /src | |
parent | 4a4da95aa0db5ef9fb991b25cab4a50f7f5aed95 (diff) |
Core/Spells: Fixed SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY not being checked in some places where IsImmunedToSpell is not called
Closes #9362
Code by @joschiwald
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 902d99d888b..9559b6e1f96 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -11131,6 +11131,9 @@ bool Unit::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) cons if (!spellInfo || !spellInfo->Effects[index].IsEffect()) return false; + f (spellInfo->Attributes & SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY) + return false; + // If m_immuneToEffect type contain this effect type, IMMUNE effect. uint32 effect = spellInfo->Effects[index].Effect; SpellImmuneList const& effectList = m_spellImmune[IMMUNITY_EFFECT]; |