diff --git a/data/sql/updates/pending_db_world/rev_1673095047755497100.sql b/data/sql/updates/pending_db_world/rev_1673095047755497100.sql new file mode 100644 index 000000000..9ceb943cc --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1673095047755497100.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `spell_script_names` WHERE `spell_id`=32065; +INSERT INTO `spell_script_names` VALUES +(32065,'spell_fungal_decay'); diff --git a/src/server/scripts/Outland/CoilfangReservoir/underbog/underbog.cpp b/src/server/scripts/Outland/CoilfangReservoir/underbog/underbog.cpp new file mode 100644 index 000000000..978b64ca5 --- /dev/null +++ b/src/server/scripts/Outland/CoilfangReservoir/underbog/underbog.cpp @@ -0,0 +1,46 @@ +/* + * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by the + * Free Software Foundation; either version 3 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include "ScriptMgr.h" +#include "SpellScript.h" +#include "the_underbog.h" + +class spell_fungal_decay : public AuraScript +{ + PrepareAuraScript(spell_fungal_decay); + + void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) + { + ModStackAmount(5); + } + + void PeriodicTick(AuraEffect const* /*aurEff*/) + { + ModStackAmount(-1); + } + + void Register() override + { + OnEffectApply += AuraEffectApplyFn(spell_fungal_decay::OnApply, EFFECT_1, SPELL_AURA_PERIODIC_DAMAGE, AURA_EFFECT_HANDLE_REAL); + OnEffectPeriodic += AuraEffectPeriodicFn(spell_fungal_decay::PeriodicTick, EFFECT_1, SPELL_AURA_PERIODIC_DAMAGE); + } +}; + +void AddSC_underbog() +{ + RegisterSpellScript(spell_fungal_decay); +} diff --git a/src/server/scripts/Outland/outland_script_loader.cpp b/src/server/scripts/Outland/outland_script_loader.cpp index 310ee1e7a..dc084c74a 100644 --- a/src/server/scripts/Outland/outland_script_loader.cpp +++ b/src/server/scripts/Outland/outland_script_loader.cpp @@ -50,7 +50,8 @@ void AddSC_boss_hydromancer_thespia(); //CR Steam Vault void AddSC_boss_mekgineer_steamrigger(); void AddSC_boss_warlord_kalithresh(); void AddSC_instance_steam_vault(); -void AddSC_boss_hungarfen(); //CR Underbog +void AddSC_underbog(); //CR Underbog +void AddSC_boss_hungarfen(); void AddSC_boss_ghazan(); void AddSC_boss_the_black_stalker(); void AddSC_instance_the_underbog(); @@ -145,7 +146,8 @@ void AddOutlandScripts() AddSC_boss_mekgineer_steamrigger(); AddSC_boss_warlord_kalithresh(); AddSC_instance_steam_vault(); - AddSC_boss_hungarfen(); //CR Underbog + AddSC_underbog(); //CR Underbog + AddSC_boss_hungarfen(); AddSC_boss_ghazan(); AddSC_boss_the_black_stalker(); AddSC_instance_the_underbog();