diff options
| author | offl <11556157+offl@users.noreply.github.com> | 2022-06-30 22:32:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-30 22:32:09 +0300 |
| commit | dfd1692e3136606e4633db45cba0871316c0d651 (patch) | |
| tree | 446f4fb1dd5d88739d4489b646eecc2314d5d29e /src/server/scripts/Spells | |
| parent | b9450bcdd0924ca69b5b2cc675f5c2b558ff9b47 (diff) | |
Scripts/Pets: Update Lil' K.T. (#28071)
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_generic.cpp | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index f566bc99e00..559ef5e1a68 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -1965,80 +1965,6 @@ class spell_gen_injured : public SpellScript } }; -enum LichPet -{ - NPC_LICH_PET = 36979, - - SPELL_LICH_PET_AURA = 69732, - SPELL_LICH_PET_AURA_ONKILL = 69731 -}; - -// 69732 - Lich Pet Aura -class spell_gen_lich_pet_aura : public AuraScript -{ - PrepareAuraScript(spell_gen_lich_pet_aura); - - bool CheckProc(ProcEventInfo& eventInfo) - { - return (eventInfo.GetProcTarget()->GetTypeId() == TYPEID_PLAYER); - } - - void HandleProc(AuraEffect const* /* aurEff */, ProcEventInfo& /* eventInfo */) - { - PreventDefaultAction(); - - std::list<Creature*> minionList; - GetUnitOwner()->GetAllMinionsByEntry(minionList, NPC_LICH_PET); - for (Creature* minion : minionList) - if (minion->IsAIEnabled()) - minion->AI()->DoCastSelf(SPELL_LICH_PET_AURA_ONKILL); - } - - void Register() override - { - DoCheckProc += AuraCheckProcFn(spell_gen_lich_pet_aura::CheckProc); - OnEffectProc += AuraEffectProcFn(spell_gen_lich_pet_aura::HandleProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL); - } -}; - -// 69735 - Lich Pet OnSummon -class spell_gen_lich_pet_onsummon : public SpellScript -{ - PrepareSpellScript(spell_gen_lich_pet_onsummon); - - bool Validate(SpellInfo const* /* spellInfo */) override - { - return ValidateSpellInfo({ SPELL_LICH_PET_AURA }); - } - - void HandleScriptEffect(SpellEffIndex /* effIndex */) - { - Unit* target = GetHitUnit(); - target->CastSpell(target, SPELL_LICH_PET_AURA, true); - } - - void Register() override - { - OnEffectHitTarget += SpellEffectFn(spell_gen_lich_pet_onsummon::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); - } -}; - -// 69736 - Lich Pet Aura Remove -class spell_gen_lich_pet_aura_remove : public SpellScript -{ - PrepareSpellScript(spell_gen_lich_pet_aura_remove); - - void HandleScriptEffect(SpellEffIndex /* effIndex */) - { - GetHitUnit()->RemoveAurasDueToSpell(SPELL_LICH_PET_AURA); - } - - void Register() override - { - OnEffectHitTarget += SpellEffectFn(spell_gen_lich_pet_aura_remove::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); - } -}; - class spell_gen_lifeblood : public AuraScript { PrepareAuraScript(spell_gen_lifeblood); @@ -4578,9 +4504,6 @@ void AddSC_generic_spell_scripts() RegisterSpellScript(spell_gen_gnomish_transporter); RegisterSpellScript(spell_gen_gryphon_wyvern_mount_check); RegisterSpellScript(spell_gen_injured); - RegisterSpellScript(spell_gen_lich_pet_aura); - RegisterSpellScript(spell_gen_lich_pet_onsummon); - RegisterSpellScript(spell_gen_lich_pet_aura_remove); RegisterSpellScript(spell_gen_lifeblood); RegisterSpellScriptWithArgs(spell_gen_lifebloom, "spell_hexlord_lifebloom", SPELL_HEXLORD_MALACRASS_LIFEBLOOM_FINAL_HEAL); RegisterSpellScriptWithArgs(spell_gen_lifebloom, "spell_tur_ragepaw_lifebloom", SPELL_TUR_RAGEPAW_LIFEBLOOM_FINAL_HEAL); |
