From 9b5eca3b2d0ada7e230c32c52ed21b3a299b7cae Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:44:48 -0600 Subject: [PATCH] Fix client spell commands from saving the wrong setting --- zone/gm_commands/spell_delays.cpp | 2 +- zone/gm_commands/spell_max_thresholds.cpp | 6 +++--- zone/gm_commands/spell_min_thresholds.cpp | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/zone/gm_commands/spell_delays.cpp b/zone/gm_commands/spell_delays.cpp index f7fda40ee..1a8a6c40c 100644 --- a/zone/gm_commands/spell_delays.cpp +++ b/zone/gm_commands/spell_delays.cpp @@ -165,7 +165,7 @@ void command_spell_delays(Client* c, const Seperator* sep) ); } else { - c->SetSpellHold(spellType, typeValue); + c->SetSpellDelay(spellType, typeValue); c->Message( Chat::Green, fmt::format( diff --git a/zone/gm_commands/spell_max_thresholds.cpp b/zone/gm_commands/spell_max_thresholds.cpp index 3e0188baa..f4aa137f8 100644 --- a/zone/gm_commands/spell_max_thresholds.cpp +++ b/zone/gm_commands/spell_max_thresholds.cpp @@ -158,18 +158,18 @@ void command_spell_max_thresholds(Client* c, const Seperator* sep) c->Message( Chat::Green, fmt::format( - "Your [{}] maximum hold is currently [{}]%%.'", + "Your [{}] maximum hold is currently [{}%%].'", c->GetSpellTypeNameByID(spellType), c->GetSpellMaxThreshold(spellType) ).c_str() ); } else { - c->SetSpellHold(spellType, typeValue); + c->SetSpellMaxThreshold(spellType, typeValue); c->Message( Chat::Green, fmt::format( - "Your [{}] maximum hold was set to [{}]%%.'", + "Your [{}] maximum hold was set to [{}%%].'", c->GetSpellTypeNameByID(spellType), c->GetSpellMaxThreshold(spellType) ).c_str() diff --git a/zone/gm_commands/spell_min_thresholds.cpp b/zone/gm_commands/spell_min_thresholds.cpp index c2b3893d7..79eabc595 100644 --- a/zone/gm_commands/spell_min_thresholds.cpp +++ b/zone/gm_commands/spell_min_thresholds.cpp @@ -158,18 +158,18 @@ void command_spell_min_thresholds(Client* c, const Seperator* sep) c->Message( Chat::Green, fmt::format( - "Your [{}] minimum hold is currently [{}]%%.'", + "Your [{}] minimum hold is currently [{}%%].'", c->GetSpellTypeNameByID(spellType), c->GetSpellMinThreshold(spellType) ).c_str() ); } else { - c->SetSpellHold(spellType, typeValue); + c->SetSpellMinThreshold(spellType, typeValue); c->Message( Chat::Green, fmt::format( - "Your [{}] minimum hold was set to [{}]%%.'", + "Your [{}] minimum hold was set to [{}%%].'", c->GetSpellTypeNameByID(spellType), c->GetSpellMinThreshold(spellType) ).c_str()