diff options
author | tibbi <tibbi@centrum.sk> | 2012-09-27 00:31:00 +0100 |
---|---|---|
committer | tibbi <tibbi@centrum.sk> | 2012-09-27 00:31:00 +0100 |
commit | 3fae05f6f36bdfd9ebc840eec3a1b07114c30c86 (patch) | |
tree | 86bd30d5ddd45dd4be9ed01af0d6ad957d3372ca /src | |
parent | 9004580ee6af00e090628ca67904522699ac68e8 (diff) |
correct hit result if the spell has SPELL_ATTR3_IGNORE_HIT_RESULT
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index fb6f2678e58..3e9ab113918 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -11579,7 +11579,9 @@ bool Unit::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) cons SpellImmuneList const& list = m_spellImmune[IMMUNITY_STATE]; for (SpellImmuneList::const_iterator itr = list.begin(); itr != list.end(); ++itr) if (itr->type == aura) - return true; + if (!(spellInfo->AttributesEx3 & SPELL_ATTR3_IGNORE_HIT_RESULT)) + return true; + // 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) |