mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
*Allow trigger creatures use spell2 as heroic spells.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user