mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Scripts/Spells: Fix mage Fire Blast crit chance (#31082)
This commit is contained in:
3
sql/updates/world/master/2025_07_16_00_world.sql
Normal file
3
sql/updates/world/master/2025_07_16_00_world.sql
Normal 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');
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user