Core/Spells:Ranged spells cant be parried or dodged.

This commit is contained in:
Retriman committed 2012-10-07 14:46:29 -04:00
1 parent 4596fc776e
commit 3c2a523980
1 file changed
+3
+3
View File
@@ -2302,6 +2302,9 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit* victim, SpellInfo const* spell)
// Ranged attacks can only miss, resist and deflect
if (attType == RANGED_ATTACK)
{
canParry = false;
canDodge = false;
// only if in front
if (victim->HasInArc(M_PI, this) || victim->HasAuraType(SPELL_AURA_IGNORE_HIT_DIRECTION))
{