aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-05-13 17:19:09 +0200
committerQAston <none@none>2009-05-13 17:19:09 +0200
commitcfe64e00e7520414339276f5c512df1024152a80 (patch)
tree5eea918caeb0a95cf0e855f311ea0d67295f1646 /src
parent8db26443d06bffa32293b64ff9f0fffcdeec99b0 (diff)
*Do not parry/dodge judgements.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index af000f67416..95547b68621 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))