This commit is contained in:
Jelle Meeus
2025-07-13 10:46:08 +02:00
parent a3bc76672a
commit 5b8542a2e0

View File

@@ -1,6 +1,6 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuraDefines.h"
#include "SpellAuraEffects.h"
#include "SpellScript.h"
#include "naxxramas.h"
@@ -268,19 +268,24 @@ class spell_sapphiron_frost_aura_40 : public AuraScript
{
Unit* caster = GetCaster();
if (!caster || (caster->GetMap()->GetDifficulty() != RAID_DIFFICULTY_10MAN_HEROIC))
{
return;
int32 bp0 = 600;
caster->CastCustomSpell(caster, SPELL_FROST_AURA, &bp0, nullptr, nullptr, false, nullptr, nullptr, GetCasterGUID());
}
PreventDefaultAction();
CustomSpellValues values;
int32 bp0 = 599;
values.AddSpellMod(SPELLVALUE_BASE_POINT0, bp0);
caster->CastCustomSpell(SPELL_FROST_AURA, values, caster, TRIGGERED_NONE, nullptr, nullptr, GetCasterGUID());
void CalculateAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/)
{
Unit* caster = GetCaster();
if (!caster || (caster->GetMap()->GetDifficulty() != RAID_DIFFICULTY_10MAN_HEROIC))
return;
if (urand(0, 99) == 0) // 1% chance to receive extra Frost Aura tick
amount *= 2;
}
void Register() override
{
OnEffectApply += AuraEffectApplyFn(spell_sapphiron_frost_aura_40::OnApply, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE, AURA_EFFECT_HANDLE_REAL);
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_sapphiron_frost_aura_40::CalculateAmount, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE);
}
};
@@ -343,7 +348,6 @@ class spell_noth_curse_of_the_plaguebringer_aura_40 : public AuraScript
}
};
class spell_razuvious_disrupting_shout_40 : public SpellScript
{
PrepareSpellScript(spell_razuvious_disrupting_shout_40);