Fix client spell commands from saving the wrong setting

This commit is contained in:
nytmyr
2024-12-23 23:44:48 -06:00
parent 25ff56ca23
commit 9b5eca3b2d
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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(
+3 -3
View File
@@ -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()
+3 -3
View File
@@ -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()