Core/Spells: Spells with SPELL_AURA_PERIODIC_MANA_LEECH should skip unit target checking if the Targets are area targets, they are filled/validated later

Signed-off-by: Subv2112 <[email protected]>
This commit is contained in:
Subv2112
2012-01-31 20:27:22 -05:00
parent 8c87fd6841
commit 9b524b43fa
+3
View File
@@ -5401,6 +5401,9 @@ SpellCastResult Spell::CheckCast(bool strict)
} }
case SPELL_AURA_PERIODIC_MANA_LEECH: case SPELL_AURA_PERIODIC_MANA_LEECH:
{ {
if (m_spellInfo->Effects[i].IsArea())
break;
if (!m_targets.GetUnitTarget()) if (!m_targets.GetUnitTarget())
return SPELL_FAILED_BAD_IMPLICIT_TARGETS; return SPELL_FAILED_BAD_IMPLICIT_TARGETS;