Scripts/Spells: Fix proc of Frost Fever (#30250)

This commit is contained in:
Aqua Deus
2024-11-17 14:14:41 +01:00
committed by GitHub
parent 407e1fb87c
commit 6f79163fcb
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,7 @@
DELETE FROM `spell_proc` WHERE `SpellId` IN (195621);
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
(195621,0x00,15,0x00000000,0x04000000,0x00000000,0x00000000,0x0,0x0,0x1,0x2,0x0,0x0,0x0,0,0,0,0); -- Frost Fever
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dk_frost_fever_proc';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(195621, 'spell_dk_frost_fever_proc');
+15
View File
@@ -667,6 +667,20 @@ class spell_dk_festering_strike : public SpellScript
}
};
// 195621 - Frost Fever
class spell_dk_frost_fever_proc : public AuraScript
{
bool CheckProc(AuraEffect const* aurEff, ProcEventInfo const& /*eventInfo*/) const
{
return roll_chance_i(aurEff->GetAmount());
}
void Register() override
{
DoCheckEffectProc += AuraCheckEffectProcFn(spell_dk_frost_fever_proc::CheckProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL);
}
};
// 47496 - Explode, Ghoul spell for Corpse Explosion
class spell_dk_ghoul_explode : public SpellScript
{
@@ -1134,6 +1148,7 @@ void AddSC_deathknight_spell_scripts()
RegisterSpellScript(spell_dk_death_strike);
RegisterSpellScript(spell_dk_death_strike_enabler);
RegisterSpellScript(spell_dk_festering_strike);
RegisterSpellScript(spell_dk_frost_fever_proc);
RegisterSpellScript(spell_dk_ghoul_explode);
RegisterSpellScript(spell_dk_glyph_of_scourge_strike_script);
RegisterSpellScript(spell_dk_heartbreaker);