*Fix a creature spell use bug.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-09 22:00:18 -05:00
parent 3b14179f65
commit 67876f9dfe
3 changed files with 6 additions and 25 deletions
+1 -4
View File
@@ -208,10 +208,7 @@ void TempSummon::InitSummon()
if(GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER && m_spells[0])
{
setFaction(owner->getFaction());
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);
CastSpell(this, m_spells[0], false, 0, 0, m_summonerGUID);
}
}
}