*Fix some spells with TARGET_FLAG_CASTER.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-18 10:46:30 -05:00
1 parent 5d2968792f
commit 5629168dbb
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -466,6 +466,12 @@ void Spell::FillTargetMap()
continue;
}
if(tmpUnitMap.empty() && m_spellInfo->Targets & TARGET_FLAG_CASTER)
{
AddUnitTarget(m_caster, i);
continue;
}
if(!targetA && !targetB)
{
// add here custom effects that need default target.