diff options
| author | Killyana <morphone1@gmail.com> | 2019-12-07 16:57:16 +0100 |
|---|---|---|
| committer | Killyana <morphone1@gmail.com> | 2019-12-07 16:57:16 +0100 |
| commit | 6db4bf66715a775ab85c7e82e9b9733c891e450e (patch) | |
| tree | 84e2617387737d6325b204dea5b8376aa39ebfb9 /src | |
| parent | 3bf44a589175e2c5036edf5f07827e76ee11dc1e (diff) | |
Quest: Weakness to Lightning
Closes #23916
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index da6a701fd6e..66a07ac028e 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -2893,6 +2893,27 @@ public: } }; +class spell_q11896_weakness_to_lightning_46444 : public SpellScript +{ + PrepareSpellScript(spell_q11896_weakness_to_lightning_46444); + + void HandleScript(SpellEffIndex /*effIndex*/) + { + if (Unit* target = GetHitUnit()) + { + if (Unit* owner = target->GetOwner()) + { + target->CastSpell(owner, GetEffectValue(), true); + } + } + } + + void Register() override + { + OnEffectHitTarget += SpellEffectFn(spell_q11896_weakness_to_lightning_46444::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); + } +}; + void AddSC_quest_spell_scripts() { new spell_q55_sacred_cleansing(); @@ -2949,6 +2970,7 @@ void AddSC_quest_spell_scripts() RegisterSpellScript(spell_q13264_q13276_q13288_q13289_area_restrict_abom); RegisterSpellScript(spell_q13264_q13276_q13288_q13289_assign_credit_to_master); RegisterSpellScript(spell_q12690_burst_at_the_seams_52510); + RegisterSpellScript(spell_q11896_weakness_to_lightning_46444); new spell_q12308_escape_from_silverbrook_summon_worgen(); new spell_q12308_escape_from_silverbrook(); new spell_q12641_death_comes_from_on_high(); |
