diff options
author | megamage <none@none> | 2009-04-29 00:10:05 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-29 00:10:05 -0500 |
commit | 4121087a8ef965b973cc83e9cbda2afa7332e02e (patch) | |
tree | c6b2a29af51c5753d9ddbbd98bd5270635787ab5 /src/game | |
parent | f722b9b4c521741306c76d6992b4eef707ed0ddb (diff) |
*Allow trigger creatures use spell2 as heroic spells.
--HG--
branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/TemporarySummon.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index dd50480e770..cfbc2a65920 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -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); } } |