*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
This commit is contained in:
megamage
2009-08-25 02:40:10 -05:00
parent d14a4a2372
commit 4f87bad87b

View File

@@ -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;