diff options
| author | offl <11556157+offl@users.noreply.github.com> | 2022-06-30 22:32:09 +0300 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-09-05 19:46:54 +0200 |
| commit | d68abbf705a870009213d8558de2884950875029 (patch) | |
| tree | ed82d5833c35c9cb99af1e5c2b0ff12395dd9b6f /src/server/scripts/Spells | |
| parent | b0164fb2b9cc35663e337d48660d5bca1e973d99 (diff) | |
Scripts/Pets: Update Lil' K.T. (#28071)
(cherry picked from commit dfd1692e3136606e4633db45cba0871316c0d651)
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 615cf7072e0..ed0d1706650 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -2073,80 +2073,6 @@ class spell_gen_increase_stats_buff : public SpellScriptLoader } }; -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* /* aurEff */, ProcEventInfo& /* eventInfo */) - { - PreventDefaultAction(); - - std::list<TempSummon*> 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); - } -}; - enum GenericLifebloom { SPELL_HEXLORD_MALACRASS_LIFEBLOOM_FINAL_HEAL = 43422, @@ -5132,9 +5058,6 @@ void AddSC_generic_spell_scripts() RegisterSpellScriptWithArgs(spell_gen_increase_stats_buff, "spell_pri_power_word_fortitude"); RegisterSpellScriptWithArgs(spell_gen_increase_stats_buff, "spell_pri_shadow_protection"); RegisterSpellScript(spell_gen_interrupt); - RegisterSpellScript(spell_gen_lich_pet_aura); - RegisterSpellScript(spell_gen_lich_pet_onsummon); - RegisterSpellScript(spell_gen_lich_pet_aura_remove); 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); RegisterSpellScriptWithArgs(spell_gen_lifebloom, "spell_cenarion_scout_lifebloom", SPELL_CENARION_SCOUT_LIFEBLOOM_FINAL_HEAL); |
