aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
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);
}