*Fix the bug that paladin gets too many miss.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-05 13:29:57 -05:00
parent 33c352b4ab
commit 821d3cb7f2

View File

@@ -2687,7 +2687,7 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell)
{
WeaponAttackType attType = BASE_ATTACK;
if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED)
if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED && spell->Attributes & SPELL_ATTR_RANGED)
attType = RANGED_ATTACK;
// bonus from skills is 0.04% per skill Diff