[svn] Fix hunter's trap (let original caster summon dynamic object).

Fix black temple boss 1's hurl spine.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-06 12:24:56 -06:00
parent 31be467b2e
commit 0aada07187
3 changed files with 44 additions and 36 deletions

View File

@@ -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);