From cfe64e00e7520414339276f5c512df1024152a80 Mon Sep 17 00:00:00 2001 From: QAston Date: Wed, 13 May 2009 17:19:09 +0200 Subject: [PATCH] *Do not parry/dodge judgements. --HG-- branch : trunk --- src/game/Unit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index af000f6741..95547b6862 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -2809,7 +2809,9 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell) return SPELL_MISS_NONE; // Ranged attack cannot be parry/dodge only deflect - if (attType == RANGED_ATTACK) + // 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) { // only if in front if (pVictim->HasInArc(M_PI,this))