From 821d3cb7f2bfa5250d96256e655427042dd355d3 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 5 May 2009 13:29:57 -0500 Subject: *Fix the bug that paladin gets too many miss. --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index db01234757b..093ef51925c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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 -- cgit v1.2.3