Scripts/Spells: Implemented Blinding Light (#20933)

This commit is contained in:
Hadifaren
2017-11-19 19:00:13 +03:30
committed by joschiwald
parent f9067f2aab
commit 00f6ca060f
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
--
DELETE FROM `spell_script_names` where `ScriptName` = 'spell_pal_blinding_light';
INSERT INTO `spell_script_names` (`Spell_Id`, `ScriptName`) VALUES
(115750, 'spell_pal_blinding_light');
--

View File

@@ -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();