Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +enum WeaknessToLightning
- +{
- + SPELL_WEAKNESS_TO_LIGHTNING_CAST_ON_MASTER_SCRIPT_EFFECT = 46444,
- + SPELL_WEAKNESS_TO_LIGHTNING_KILL_CREDIT_FROM_PET = 46445
- +};
- +
- +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())
- + {
- + owner->CastSpell(owner, SPELL_WEAKNESS_TO_LIGHTNING_KILL_CREDIT_FROM_PET, 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 +2976,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();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement