diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index bd5466dab..7a8e42ca3 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1887,6 +1887,24 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) m_caster->CastSpell(m_caster, spellShrink, true); return; } + case 54577: // Throw U.D.E.D. + { + if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) + return; + + // Sometimes issues with explosion animation. Unclear why + // but possibly caused by the order of spells. + + // Permanent Feign Death + unitTarget->CastSpell(unitTarget, 29266, true); + + // need to despawn later + ((Creature*)unitTarget)->ForcedDespawn(2000); + + // Mammoth Explosion Spell Spawner + unitTarget->CastSpell(unitTarget, 54581, true, m_CastItem); + return; + } case 55004: // Nitro Boosts { if (!m_CastItem) @@ -6354,6 +6372,29 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) unitTarget->RemoveAurasDueToSpell(51967); return; } + case 54581: // Mammoth Explosion Spell Spawner + { + if (m_caster->GetTypeId() != TYPEID_UNIT) + return; + + // Summons misc npc's. They are expected to summon GO from 54625 + // but there is no way to get the summoned, to trigger a spell + // cast (workaround can be done with ai script). + + // Quest - Mammoth Explosion Summon Object + for(int i = 0; i < 2; ++i) + m_caster->CastSpell(m_caster, 54623, true); + + for(int i = 0; i < 2; ++i) + m_caster->CastSpell(m_caster, 54627, true); + + for(int i = 0; i < 2; ++i) + m_caster->CastSpell(m_caster, 54628, true); + + // Summon Main Mammoth Meat + m_caster->CastSpell(m_caster, 57444, true); + return; + } case 54729: // Winged Steed of the Ebon Blade { if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 1803b00db..591b926de 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11030" + #define REVISION_NR "11031" #endif // __REVISION_NR_H__