From 4f87bad87bfc4b05f106e3a96b26ffb30b2628e4 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 25 Aug 2009 02:40:10 -0500 Subject: *Reapply rev [3274]. It was backoutted due to some reason but was not reapplied as supposed. This should fix the bug that Shockwave can be dodged. --HG-- branch : trunk --- src/game/Unit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0c670453543..d4f2de45931 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -2643,7 +2643,9 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell) { WeaponAttackType attType = BASE_ATTACK; - if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED && IsRangedWeaponSpell(spell)) + // Check damage class instead of attack type to correctly handle judgements + // - they are meele, but can't be dodged/parried/deflected because of ranged dmg class + if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED) attType = RANGED_ATTACK; int32 attackerWeaponSkill; -- cgit v1.2.3