From 09cf68b1cf20f9b63156948c62b968ed6a34ffba Mon Sep 17 00:00:00 2001 From: Simon Hensel Date: Thu, 19 Jun 2025 21:14:17 +0200 Subject: [PATCH] Fixes to Detect Magic spell Fixes the chat message when casting Detect Magic on a mob that has resistances. SkillLineAbility.dbc and the client patch need to be updated as well. --- src/spellScripts/spellScripts.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/spellScripts/spellScripts.cpp b/src/spellScripts/spellScripts.cpp index a7bb52c..3e6eb4f 100644 --- a/src/spellScripts/spellScripts.cpp +++ b/src/spellScripts/spellScripts.cpp @@ -32,22 +32,22 @@ class spell_detect_magic : public SpellScript else { if (holyResist > 0.01) - ChatHandler(caster->GetSession()).PSendSysMessage("You detect a holy resistance of: %.0f", holyResist); + ChatHandler(caster->GetSession()).PSendSysMessage("You detect a holy resistance of: {}", holyResist); if (fireResist > 0.01) - ChatHandler(caster->GetSession()).PSendSysMessage("You detect a fire resistance of: %.0f", fireResist); + ChatHandler(caster->GetSession()).PSendSysMessage("You detect a fire resistance of: {}", fireResist); if (natureResist > 0.01) - ChatHandler(caster->GetSession()).PSendSysMessage("You detect a nature resistance of: %.0f", natureResist); + ChatHandler(caster->GetSession()).PSendSysMessage("You detect a nature resistance of: {}", natureResist); if (frostResist > 0.01) - ChatHandler(caster->GetSession()).PSendSysMessage("You detect a frost resistance of: %.0f", frostResist); + ChatHandler(caster->GetSession()).PSendSysMessage("You detect a frost resistance of: {}", frostResist); if (shadowResist > 0.01) - ChatHandler(caster->GetSession()).PSendSysMessage("You detect a shadow resistance of: %.0f", shadowResist); + ChatHandler(caster->GetSession()).PSendSysMessage("You detect a shadow resistance of: {}", shadowResist); if (arcaneResist > 0.01) - ChatHandler(caster->GetSession()).PSendSysMessage("You detect a arcane resistance of: %.0f", arcaneResist); + ChatHandler(caster->GetSession()).PSendSysMessage("You detect a arcane resistance of: {}", arcaneResist); } } }