aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua Deus <95978183+aquadeus@users.noreply.github.com>2025-07-16 23:41:14 +0200
committerGitHub <noreply@github.com>2025-07-16 23:41:14 +0200
commit0cb2932e84fa297056b63caa2c983e3bb365d392 (patch)
tree1406a6239048073628f7575c6dd7d12a49aa1aeb
parent3aa9a85106e8a053390ca403318f7c67d9a7d02a (diff)
Scripts/Spells: Fix mage Fire Blast crit chance (#31082)
-rw-r--r--sql/updates/world/master/2025_07_16_00_world.sql3
-rw-r--r--src/server/scripts/Spells/spell_mage.cpp15
2 files changed, 18 insertions, 0 deletions
diff --git a/sql/updates/world/master/2025_07_16_00_world.sql b/sql/updates/world/master/2025_07_16_00_world.sql
new file mode 100644
index 00000000000..6db4376d4f6
--- /dev/null
+++ b/sql/updates/world/master/2025_07_16_00_world.sql
@@ -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');
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp
index f582870e8af..c47576a338e 100644
--- a/src/server/scripts/Spells/spell_mage.cpp
+++ b/src/server/scripts/Spells/spell_mage.cpp
@@ -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);