mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
Fix client spell commands from saving the wrong setting
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user