[9675] Fix SPELL_DAMAGE_CLASS_NONE hit result

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
megamage 2010-04-05 19:44:56 +03:00 committed by Laise
parent 16a281c6d0
commit b7204c9e8d
2 changed files with 5 additions and 4 deletions

View file

@ -2992,12 +2992,13 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
switch (spell->DmgClass)
{
case SPELL_DAMAGE_CLASS_RANGED:
case SPELL_DAMAGE_CLASS_MELEE:
return MeleeSpellHitResult(pVictim, spell);
case SPELL_DAMAGE_CLASS_NONE:
return SPELL_MISS_NONE;
case SPELL_DAMAGE_CLASS_MAGIC:
return MagicSpellHitResult(pVictim, spell);
case SPELL_DAMAGE_CLASS_MELEE:
case SPELL_DAMAGE_CLASS_RANGED:
return MeleeSpellHitResult(pVictim, spell);
}
return SPELL_MISS_NONE;
}