[svn] Fix SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY spells, patch provided by QAston.

Fix priest's fear. Is breakable now.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-11-03 13:43:36 -06:00
1 parent 09c72569c0
commit da5786249f
2 files changed
+8 -4

No files matched your search

+4
View File
@@ -2803,6 +2803,10 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
if (pVictim->GetTypeId()==TYPEID_UNIT && ((Creature*)pVictim)->IsInEvadeMode())
return SPELL_MISS_EVADE;
// If Spel has this flag cannot be resisted/immuned/etc
if (spell->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY)
return SPELL_MISS_NONE;
// Check for immune (use charges)
if (pVictim->IsImmunedToSpell(spell,true))
return SPELL_MISS_IMMUNE;