aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/creature/mob_generic_creature.cpp21
-rw-r--r--src/game/TemporarySummon.cpp5
2 files changed, 3 insertions, 23 deletions
diff --git a/src/bindings/scripts/scripts/creature/mob_generic_creature.cpp b/src/bindings/scripts/scripts/creature/mob_generic_creature.cpp
index 56155a9ff2f..ec987e31c0e 100644
--- a/src/bindings/scripts/scripts/creature/mob_generic_creature.cpp
+++ b/src/bindings/scripts/scripts/creature/mob_generic_creature.cpp
@@ -166,25 +166,8 @@ struct TRINITY_DLL_DECL trigger_periodicAI : public NullCreatureAI
{
trigger_periodicAI(Creature* c) : NullCreatureAI(c)
{
- if(me->m_spells[0])
- {
- if(me->m_spells[1])
- spell = GetSpellStore()->LookupEntry(HEROIC(me->m_spells[0], me->m_spells[1]));
- else
- spell = GetSpellStore()->LookupEntry(me->m_spells[0]);
- }
- else
- spell = NULL;
-
- if(me->m_spells[2])
- {
- if(me->m_spells[3])
- interval = HEROIC(me->m_spells[2], me->m_spells[3]);
- else
- interval = me->m_spells[2];
- }
- else
- interval = 1000;
+ spell = me->m_spells[0] ? GetSpellStore()->LookupEntry(me->m_spells[0]) : NULL;
+ interval = me->m_spells[1] ? me->m_spells[1] : 1000;
timer = interval;
}
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp
index 14a347ee4bd..afea0e5ed53 100644
--- a/src/game/TemporarySummon.cpp
+++ b/src/game/TemporarySummon.cpp
@@ -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);
}
}
}