aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorJamminWidYou <trinitybountyhunter@gmail.com>2016-06-14 13:48:28 +0200
committermik1893 <michele.roscelli@gmail.com>2016-06-14 12:48:28 +0100
commit3002839bfec1c69e00a191d82e569b647cd4fdb8 (patch)
treec55d4f06588db8b329b2208fe2959ff189682450 /src/server/scripts/Spells
parent2df6a9126ac0173f0d89bbc22e735726206af536 (diff)
[3.3.5] Core/Quest: A life without regret (#16067)
* Life without Regret * misc changes to sql * sql changes
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_quest.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index ae761413ca5..1a40988619d 100644
--- a/src/server/scripts/Spells/spell_quest.cpp
+++ b/src/server/scripts/Spells/spell_quest.cpp
@@ -2482,6 +2482,33 @@ class spell_q13665_q13790_bested_trigger : public SpellScriptLoader
}
};
+// herald of war and life without regret portal spells
+class spell_59064_59439_portals : public SpellScriptLoader
+{
+public:
+ spell_59064_59439_portals() : SpellScriptLoader("spell_59064_59439_portals") { }
+
+ class spell_59064_59439_portals_SpellScript : public SpellScript
+ {
+ PrepareSpellScript(spell_59064_59439_portals_SpellScript);
+
+ void HandleScript(SpellEffIndex /*effIndex*/)
+ {
+ GetHitUnit()->CastSpell(GetHitUnit(), uint32(GetEffectValue()));
+ }
+
+ void Register() override
+ {
+ OnEffectHitTarget += SpellEffectFn(spell_59064_59439_portals_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
+ }
+ };
+
+ SpellScript* GetSpellScript() const override
+ {
+ return new spell_59064_59439_portals_SpellScript();
+ }
+};
+
void AddSC_quest_spell_scripts()
{
new spell_q55_sacred_cleansing();
@@ -2542,4 +2569,5 @@ void AddSC_quest_spell_scripts()
new spell_q10929_fumping();
new spell_q12414_hand_over_reins();
new spell_q13665_q13790_bested_trigger();
+ new spell_59064_59439_portals();
}