diff options
| author | offl <11556157+offl@users.noreply.github.com> | 2022-03-04 00:57:14 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-03-26 15:45:49 +0100 |
| commit | 6a5a39dda09aaec5e48043edb06fcfd1fbf9c7a6 (patch) | |
| tree | 165553ef9af3ae3c7c7b94a2f5aea9c06da80af7 /src/server/scripts/Northrend | |
| parent | 3db9034f4c9bfe532cb2e32fa3abff01c94de3bf (diff) | |
Scripts/Quest: Update 'Breakfast Of Champions' (#27846)
(cherry picked from commit 9d654345b50daff0a6b83db9a0c2aa05aac1bd64)
Diffstat (limited to 'src/server/scripts/Northrend')
| -rw-r--r-- | src/server/scripts/Northrend/zone_icecrown.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/zone_icecrown.cpp b/src/server/scripts/Northrend/zone_icecrown.cpp index 62c411b97cf..abb581be651 100644 --- a/src/server/scripts/Northrend/zone_icecrown.cpp +++ b/src/server/scripts/Northrend/zone_icecrown.cpp @@ -827,6 +827,37 @@ class spell_summon_tualiq_proxy : public SpellScript } }; +/*###### +## Quest 14076 & 14092: Breakfast Of Champions +######*/ + +enum BreakfastOfChampions +{ + SPELL_SUMMON_DEEP_JORMUNGAR = 66510, + SPELL_STORMFORGED_MOLE_MACHINE = 66492 +}; + +// 66512 - Pound Drum +class spell_q14076_14092_pound_drum : public SpellScript +{ + PrepareSpellScript(spell_q14076_14092_pound_drum); + + bool Validate(SpellInfo const* /*spell*/) override + { + return ValidateSpellInfo({ SPELL_SUMMON_DEEP_JORMUNGAR, SPELL_STORMFORGED_MOLE_MACHINE }); + } + + void HandleSummon() + { + GetCaster()->CastSpell(GetCaster(), roll_chance_i(50) ? SPELL_SUMMON_DEEP_JORMUNGAR : SPELL_STORMFORGED_MOLE_MACHINE, true); + } + + void Register() override + { + OnCast += SpellCastFn(spell_q14076_14092_pound_drum::HandleSummon); + } +}; + void AddSC_icecrown() { new npc_argent_valiant; @@ -836,4 +867,5 @@ void AddSC_icecrown() new npc_frostbrood_skytalon(); RegisterSpellScript(spell_the_ocular_on_death); RegisterSpellScript(spell_summon_tualiq_proxy); + RegisterSpellScript(spell_q14076_14092_pound_drum); } |
