From dd3708358b8af95686de2b5a5634b17e5ccd4cd3 Mon Sep 17 00:00:00 2001 From: Grimfeather <88028633+Grimfeather@users.noreply.github.com> Date: Wed, 2 Jul 2025 22:16:22 +0200 Subject: [PATCH] Update custom_spells_40.cpp --- src/naxx40Scripts/custom_spells_40.cpp | 39 +++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/src/naxx40Scripts/custom_spells_40.cpp b/src/naxx40Scripts/custom_spells_40.cpp index 350d554..2cc6a93 100644 --- a/src/naxx40Scripts/custom_spells_40.cpp +++ b/src/naxx40Scripts/custom_spells_40.cpp @@ -249,6 +249,40 @@ class spell_sapphiron_icebolt_40 : public SpellScript } }; +// 28531 - Frost Aura +enum FrostAura +{ + SPELL_FROST_AURA = 28531, +}; + +class spell_sapphiron_frost_aura_40 : public AuraScript +{ + PrepareAuraScript(spell_sapphiron_frost_aura_40); + + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo({ SPELL_FROST_AURA }); + } + + void HandleTriggerSpell(AuraEffect const* /*aurEff*/) + { + Unit* caster = GetCaster(); + if (!caster || (caster->GetMap()->GetDifficulty() != RAID_DIFFICULTY_10MAN_HEROIC)) + { + return; + } + PreventDefaultAction(); + int32 modifiedFrostAuraDamage = 599; + CustomSpellValues values; + values.AddSpellMod(SPELLVALUE_BASE_POINT0, modifiedFrostAuraDamage); + caster->CastCustomSpell(SPELL_FROST_AURA, values, caster, TRIGGERED_NONE, nullptr, nullptr, GetCasterGUID()); + } + + void Register() override + { + OnEffectPeriodic += AuraEffectPeriodicFn(spell_sapphiron_frost_aura_40::HandleTriggerSpell, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE); + } +}; // 29213 - Curse of the Plaguebringer enum CurseOfThePlaguebringer @@ -324,6 +358,7 @@ class spell_razuvious_disrupting_shout_40 : public SpellScript } }; +// 28450 Unholy Staff class spell_unholy_staff_arcane_explosion_40 : public SpellScript { PrepareSpellScript(spell_unholy_staff_arcane_explosion_40); @@ -354,6 +389,7 @@ class spell_unholy_staff_arcane_explosion_40 : public SpellScript } }; +// 28153 Disease cloud, Sewage Slime class spell_disease_cloud_damage_40 : public SpellScript { PrepareSpellScript(spell_disease_cloud_damage_40); @@ -374,7 +410,7 @@ class spell_disease_cloud_damage_40 : public SpellScript } }; - +// 28135 Static Field class spell_feugen_static_field_40 : public SpellScript { PrepareSpellScript(spell_feugen_static_field_40); @@ -411,6 +447,7 @@ void AddSC_custom_spells_40() RegisterSpellScript(spell_kelthuzad_dark_blast_40); RegisterSpellScript(spell_kelthuzad_frostbolt_40); RegisterSpellScript(spell_sapphiron_icebolt_40); + RegisterSpellScript(spell_sapphiron_frost_aura_40); RegisterSpellScript(spell_noth_curse_of_the_plaguebringer_aura_40); RegisterSpellScript(spell_razuvious_disrupting_shout_40); RegisterSpellScript(spell_unholy_staff_arcane_explosion_40);