Scripts/Spells: Fix mage Fire Blast crit chance (#31082)

This commit is contained in:
Aqua Deus
2025-07-16 23:41:14 +02:00
committed by GitHub
parent 3aa9a85106
commit 0cb2932e84
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_mage_fire_blast';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(108853, 'spell_mage_fire_blast');

View File

@@ -761,6 +761,20 @@ class spell_mage_firestarter_dots : public AuraScript
}
};
// 108853 - Fire Blast
class spell_mage_fire_blast : public SpellScript
{
void CalcCritChance(Unit const* /*victim*/, float& critChance) const
{
critChance = 100.0f;
}
void Register() override
{
OnCalcCritChance += SpellOnCalcCritChanceFn(spell_mage_fire_blast::CalcCritChance);
}
};
// 205029 - Flame On
class spell_mage_flame_on : public AuraScript
{
@@ -1702,6 +1716,7 @@ void AddSC_mage_spell_scripts()
RegisterSpellScript(spell_mage_fingers_of_frost);
RegisterSpellScript(spell_mage_firestarter);
RegisterSpellScript(spell_mage_firestarter_dots);
RegisterSpellScript(spell_mage_fire_blast);
RegisterSpellScript(spell_mage_flame_on);
RegisterSpellScript(spell_mage_flame_patch);
RegisterAreaTriggerAI(at_mage_flame_patch);