*Fix some broken spells without targetA and B.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-22 22:04:13 -05:00
parent db3e17cb70
commit 92d8abea95

View File

@@ -473,6 +473,12 @@ void Spell::FillTargetMap()
if(!targetA && !targetB)
{
if(!GetSpellMaxRangeForFriend(sSpellRangeStore.LookupEntry(m_spellInfo->rangeIndex)))
{
AddUnitTarget(m_caster, i);
continue;
}
// add here custom effects that need default target.
// FOR EVERY TARGET TYPE THERE IS A DIFFERENT FILL!!
switch(m_spellInfo->Effect[i])