Fix SPELL_AURA_MOD_AOE_AVOIDANCE

There is not a single spell using this aura, but now it works :)
This commit is contained in:
Unholychick committed 2014-04-07 09:50:05 +02:00
1 parent 98a9a088bf
commit 7b55dcf0f8
1 file changed
+1 -1
+1 -1
View File
@@ -2515,7 +2515,7 @@ SpellMissInfo Unit::MagicSpellHitResult(Unit* victim, SpellInfo const* spellInfo
// Chance hit from victim SPELL_AURA_MOD_ATTACKER_SPELL_HIT_CHANCE auras
modHitChance += victim->GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_ATTACKER_SPELL_HIT_CHANCE, schoolMask);
// Reduce spell hit chance for Area of effect spells from victim SPELL_AURA_MOD_AOE_AVOIDANCE aura
if (spellInfo->IsTargetingArea())
if (spellInfo->IsAffectingArea())
modHitChance -= victim->GetTotalAuraModifier(SPELL_AURA_MOD_AOE_AVOIDANCE);
// Decrease hit chance from victim rating bonus