*Allow trigger creatures use spell2 as heroic spells.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-29 00:10:05 -05:00
parent f722b9b4c5
commit 4121087a8e

View File

@@ -185,7 +185,10 @@ void TempSummon::InitSummon(uint32 duration)
if(GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER && m_spells[0])
{
setFaction(owner->getFaction());
CastSpell(this, m_spells[0], false, 0, 0, m_summonerGUID);
if(m_spells[1] && GetMap()->IsHeroic())
CastSpell(this, m_spells[1], false, 0, 0, m_summonerGUID);
else
CastSpell(this, m_spells[0], false, 0, 0, m_summonerGUID);
}
}