aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
authoroffl <11556157+offl@users.noreply.github.com>2022-07-12 00:31:59 +0300
committerGitHub <noreply@github.com>2022-07-12 00:31:59 +0300
commit1c96eebcc185026cac4a84875195fb93c0485d08 (patch)
tree93a4ea325c48ccbd451ea27f180e0461a11f706c /src/server/scripts/EasternKingdoms
parent37fcaf64ef0f4b16debbe16178c032dca7e91563 (diff)
Scripts/Quest: Update few quests (#28108)
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
index eca32c1a9dd..98f94d82c55 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
@@ -1098,6 +1098,45 @@ class spell_gift_of_the_harvester : public SpellScript
}
};
+/*######
+## Quest 12842: Runeforging: Preparation For Battle
+######*/
+
+enum Runeforging
+{
+ SPELL_RUNEFORGING_CREDIT = 54586
+};
+
+/* 53323 - Rune of Swordshattering
+ 53331 - Rune of Lichbane
+ 53341 - Rune of Cinderglacier
+ 53342 - Rune of Spellshattering
+ 53343 - Rune of Razorice
+ 53344 - Rune of the Fallen Crusader
+ 54446 - Rune of Swordbreaking
+ 54447 - Rune of Spellbreaking
+ 62158 - Rune of the Stoneskin Gargoyle
+ 70164 - Rune of the Nerubian Carapace */
+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();
@@ -1114,4 +1153,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);
}