Core/Spells: Used correct implementation for checking if a spell effect targets an area.

This commit is contained in:
Kandera
2012-03-15 14:14:42 -04:00
parent 5406a0fd93
commit b23ff228a4

View File

@@ -4942,7 +4942,7 @@ SpellCastResult Spell::CheckCast(bool strict)
for (int i = 0; i < MAX_SPELL_EFFECTS; i++)
if (m_spellInfo->Effects[i].Effect == SPELL_EFFECT_DISPEL)
{
if (m_spellInfo->Effects[i].TargetA.IsArea() || m_spellInfo->Effects[i].TargetB.IsArea())
if (m_spellInfo->Effects[i].IsTargetingArea())
{
hasDispellableAura = true;
break;