Backed out changeset: 7dcbf5239f55
--HG-- branch : trunk
This commit is contained in:
+4
-4
@@ -2767,9 +2767,7 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell)
|
|||||||
{
|
{
|
||||||
WeaponAttackType attType = BASE_ATTACK;
|
WeaponAttackType attType = BASE_ATTACK;
|
||||||
|
|
||||||
// Check damage class instead of attack type to correctly handle judgements
|
if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED && IsRangedWeaponSpell(spell))
|
||||||
// - 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;
|
attType = RANGED_ATTACK;
|
||||||
|
|
||||||
// bonus from skills is 0.04% per skill Diff
|
// bonus from skills is 0.04% per skill Diff
|
||||||
@@ -2811,7 +2809,9 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell)
|
|||||||
return SPELL_MISS_NONE;
|
return SPELL_MISS_NONE;
|
||||||
|
|
||||||
// Ranged attack cannot be parry/dodge only deflect
|
// 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
|
// only if in front
|
||||||
if (pVictim->HasInArc(M_PI,this))
|
if (pVictim->HasInArc(M_PI,this))
|
||||||
|
|||||||
Reference in New Issue
Block a user