Skip to content

Commit

Permalink
Spell: 61171 - Burning
Browse files Browse the repository at this point in the history
effect corrected
  • Loading branch information
Grz3s committed Aug 29, 2024
1 parent 9186c69 commit b978c35
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
17 changes: 17 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1264,4 +1280,5 @@ void AddSC_icecrown()
RegisterSpellScript<SummonDarkMessengerBeam>("spell_summon_dark_messenger_beam");
RegisterSpellScript<AlumethsRemains>("spell_alumeths_remains");
RegisterSpellScript<FireSGM3>("spell_fire_sgm3");
RegisterSpellScript<Burning>("spell_burning");
}

0 comments on commit b978c35

Please sign in to comment.