[svn] Fix cloak of shadows. Dispel type should be based on SPELL_DAMAGE_CLASS_MAGIC.

Fix: SPELL_DAMAGE_CLASS_NONE type spells should never miss.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-10-21 17:10:05 -05:00
parent 9688da09b0
commit 96d1c9f4d6
2 changed files with 3 additions and 2 deletions

View File

@@ -2905,6 +2905,7 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
// return MeleeSpellHitResult(pVictim, spell);
return SPELL_MISS_NONE;
case SPELL_DAMAGE_CLASS_NONE:
return SPELL_MISS_NONE;
case SPELL_DAMAGE_CLASS_MAGIC:
return MagicSpellHitResult(pVictim, spell);
}