[7557] Fixed triggered spells which ImplicitTarget is 0 like 50516 and ranks Author: arrai

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-28 16:21:15 -06:00
parent a986492718
commit e76a15491b

View File

@@ -539,7 +539,8 @@ void Spell::FillTargetMap()
case SPELL_EFFECT_LEARN_SPELL:
if(m_targets.getUnitTarget())
tmpUnitMap.push_back(m_targets.getUnitTarget());
else
// Triggered spells have additional spell targets - cast them even if no explicit unit target is given (required for spell 50516 for example)
else if(m_spellInfo->Effect[i] == SPELL_EFFECT_TRIGGER_SPELL)
tmpUnitMap.push_back(m_caster);
break;
case SPELL_EFFECT_SUMMON_PLAYER: