diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index d064abe42..2b3c7bf60 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1495,6 +1495,25 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) unitTarget->CastSpell(unitTarget, 47178, true); return; } + case 47305: // Potent Explosive Charge + { + if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) + return; + + // only if below 80% hp + if (unitTarget->GetHealthPercent() > 80.0f) + return; + + // Issues with explosion animation (remove insta kill spell resolves the issue) + + // Quest - Jormungar Explosion Spell Spawner + unitTarget->CastSpell(unitTarget, 47311, true); + + // Potent Explosive Charge + unitTarget->CastSpell(unitTarget, 47306, true); + + return; + } case 49357: // Brewfest Mount Transformation { if (m_caster->GetTypeId() != TYPEID_PLAYER) @@ -6177,6 +6196,24 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) break; } + case 47311: // Quest - Jormungar Explosion Spell Spawner + { + // Summons npc's. They are expected to summon GO from 47315 + // but there is no way to get the summoned, to trigger a spell + // cast (workaround can be done with ai script). + + // Quest - Jormungar Explosion Summon Object + for(int i = 0; i < 2; ++i) + m_caster->CastSpell(m_caster, 47309, true); + + for(int i = 0; i < 2; ++i) + m_caster->CastSpell(m_caster, 47924, true); + + for(int i = 0; i < 2; ++i) + m_caster->CastSpell(m_caster, 47925, true); + + return; + } case 47393: // The Focus on the Beach: Quest Completion Script { if (!unitTarget) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index c8c4a69c9..7657c5935 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 "11041" + #define REVISION_NR "11042" #endif // __REVISION_NR_H__