aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorHadifaren <uther110@gmail.com>2017-11-19 19:00:13 +0330
committerjoschiwald <joschiwald.trinity@gmail.com>2017-11-19 16:30:13 +0100
commit00f6ca060f6a413b2e6c99e340c8f7b22e3df954 (patch)
tree9b625a62395c6fef602f9ba660c4cda48dde861c /src/server/scripts/Spells
parentf9067f2aab4f872c2f7a8f58efd6d8ed74fedbf8 (diff)
Scripts/Spells: Implemented Blinding Light (#20933)
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index 616b7cc2c0f..d2260e5bae9 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -40,6 +40,7 @@ enum PaladinSpells
SPELL_PALADIN_BLESSING_OF_LOWER_CITY_PALADIN = 37879,
SPELL_PALADIN_BLESSING_OF_LOWER_CITY_PRIEST = 37880,
SPELL_PALADIN_BLESSING_OF_LOWER_CITY_SHAMAN = 37881,
+ SPELL_PALADIN_BLINDING_LIGHT_EFFECT = 105421,
SPELL_PALADIN_CONCENTRACTION_AURA = 19746,
SPELL_PALADIN_DIVINE_PURPOSE_PROC = 90174,
SPELL_PALADIN_DIVINE_STEED_HUMAN = 221883,
@@ -334,6 +335,28 @@ class spell_pal_blessing_of_faith : public SpellScriptLoader
}
};
+// 115750 - Blinding Light
+class spell_pal_blinding_light : public SpellScript
+{
+ PrepareSpellScript(spell_pal_blinding_light);
+
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo({ SPELL_PALADIN_BLINDING_LIGHT_EFFECT });
+ }
+
+ void HandleDummy(SpellEffIndex /*effIndex*/)
+ {
+ if (Unit* target = GetHitUnit())
+ GetCaster()->CastSpell(target, SPELL_PALADIN_BLINDING_LIGHT_EFFECT, true);
+ }
+
+ void Register() override
+ {
+ OnEffectHitTarget += SpellEffectFn(spell_pal_blinding_light::HandleDummy, EFFECT_0, SPELL_EFFECT_APPLY_AURA);
+ }
+};
+
// 190784 - Divine Steed
class spell_pal_divine_steed : public SpellScriptLoader
{
@@ -1329,6 +1352,7 @@ void AddSC_paladin_spell_scripts()
new spell_pal_aura_mastery_immune();
new spell_pal_avenging_wrath();
new spell_pal_blessing_of_faith();
+ RegisterSpellScript(spell_pal_blinding_light);
new spell_pal_divine_steed();
new spell_pal_divine_storm();
new spell_pal_exorcism_and_holy_wrath_damage();