diff options
author | megamage <none@none> | 2008-11-06 12:24:56 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-06 12:24:56 -0600 |
commit | 0aada07187e373ef9763bfb2ae6e6f706f56dfd4 (patch) | |
tree | ba1ad78d1895fc7bd01a80833c1b9927ce403967 /src/game/Spell.cpp | |
parent | 31be467b2e9698a05fde5525a6ce758ab2d940f5 (diff) |
[svn] Fix hunter's trap (let original caster summon dynamic object).
Fix black temple boss 1's hurl spine.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 77fe888e23a..aa94f6b24eb 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -981,8 +981,9 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask) } // Recheck immune (only for delayed spells) - if( m_spellInfo->speed && ( - unit->IsImmunedToDamage(GetSpellSchoolMask(m_spellInfo),true) || + if( m_spellInfo->speed && + !(m_spellInfo->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY) + && (unit->IsImmunedToDamage(GetSpellSchoolMask(m_spellInfo),true) || unit->IsImmunedToSpell(m_spellInfo,true) )) { m_caster->SendSpellMiss(unit, m_spellInfo->Id, SPELL_MISS_IMMUNE); |