diff options
| author | offl <11556157+offl@users.noreply.github.com> | 2022-07-12 00:31:59 +0300 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-09-05 21:01:44 +0200 |
| commit | d02989e9e6ca637849450b8a6b2a4957f8ca29bf (patch) | |
| tree | 18ceda400522189380c38b5224c28e323e1dacaf /src/server/scripts/EasternKingdoms/ScarletEnclave | |
| parent | 731177fa9bc1b6fc7078f1e71dca279227732da5 (diff) | |
Scripts/Quest: Update few quests (#28108)
(cherry picked from commit 1c96eebcc185026cac4a84875195fb93c0485d08)
Diffstat (limited to 'src/server/scripts/EasternKingdoms/ScarletEnclave')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp index 09331dc0fa5..7c724732bd9 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp @@ -1102,6 +1102,43 @@ class spell_gift_of_the_harvester : public SpellScript } }; +/*###### +## Quest 12842: Runeforging: Preparation For Battle +######*/ + +enum Runeforging +{ + SPELL_RUNEFORGING_CREDIT = 54586 +}; + +/* 53343 - Rune of Razorice + 53344 - Rune of the Fallen Crusader + 62158 - Rune of the Stoneskin Gargoyle + 326805 - Rune of Sanguination + 326855 - Rune of Spellwarding + 326911 - Rune of Hysteria + 326977 - Rune of Unending Thirst + 327082 - Rune of the Apocalypse */ +class spell_chapter1_runeforging_credit : public SpellScript +{ + PrepareSpellScript(spell_chapter1_runeforging_credit); + + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo({ SPELL_RUNEFORGING_CREDIT }); + } + + void HandleDummy(SpellEffIndex /*effIndex*/) + { + GetCaster()->CastSpell(GetCaster(), SPELL_RUNEFORGING_CREDIT); + } + + void Register() override + { + OnEffectHit += SpellEffectFn(spell_chapter1_runeforging_credit::HandleDummy, EFFECT_1, SPELL_EFFECT_DUMMY); + } +}; + void AddSC_the_scarlet_enclave_c1() { new npc_unworthy_initiate(); @@ -1118,4 +1155,5 @@ void AddSC_the_scarlet_enclave_c1() new npc_dkc1_gothik(); RegisterCreatureAI(npc_scarlet_ghoul); RegisterSpellScript(spell_gift_of_the_harvester); + RegisterSpellScript(spell_chapter1_runeforging_credit); } |
