From b978c35ae81080bb8f95656447a36af4f101f52f Mon Sep 17 00:00:00 2001 From: Grz3s Date: Thu, 29 Aug 2024 20:26:50 +0200 Subject: [PATCH] Spell: 61171 - Burning effect corrected --- sql/scriptdev2/spell.sql | 1 + .../ScriptDevAI/scripts/northrend/icecrown.cpp | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql index f082b9fc9ec..0b4415f78df 100644 --- a/sql/scriptdev2/spell.sql +++ b/sql/scriptdev2/spell.sql @@ -941,6 +941,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES (61073,'spell_vortex_aura'), (61074,'spell_vortex_aura'), (61075,'spell_vortex_aura'), +(61171,'spell_burning'), (61187,'spell_twilight_shift_aura'), (61190,'spell_twilight_shift_aura'), (61210,'spell_align_disk_aggro'), diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index 374d128b553..059062bae5a 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -1216,6 +1216,22 @@ struct FireSGM3 : public SpellScript } }; +// 61171 - Burning +struct Burning : public AuraScript +{ + void OnApply(Aura* aura, bool apply) const override + { + if (apply) + aura->ForcePeriodicity(1 * IN_MILLISECONDS); // tick every second + } + + void OnPeriodicTickEnd(Aura* aura) const override + { + Unit* target = aura->GetTarget(); + Unit::DealDamage(target, target, 1000, nullptr, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, nullptr, false); + } +}; + void AddSC_icecrown() { Script* pNewScript = new Script; @@ -1264,4 +1280,5 @@ void AddSC_icecrown() RegisterSpellScript("spell_summon_dark_messenger_beam"); RegisterSpellScript("spell_alumeths_remains"); RegisterSpellScript("spell_fire_sgm3"); + RegisterSpellScript("spell_burning"); }