mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 23:08:21 +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 {
|
else {
|
||||||
c->SetSpellHold(spellType, typeValue);
|
c->SetSpellDelay(spellType, typeValue);
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::Green,
|
Chat::Green,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
|
|||||||
@@ -158,18 +158,18 @@ void command_spell_max_thresholds(Client* c, const Seperator* sep)
|
|||||||
c->Message(
|
c->Message(
|
||||||
Chat::Green,
|
Chat::Green,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"Your [{}] maximum hold is currently [{}]%%.'",
|
"Your [{}] maximum hold is currently [{}%%].'",
|
||||||
c->GetSpellTypeNameByID(spellType),
|
c->GetSpellTypeNameByID(spellType),
|
||||||
c->GetSpellMaxThreshold(spellType)
|
c->GetSpellMaxThreshold(spellType)
|
||||||
).c_str()
|
).c_str()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
c->SetSpellHold(spellType, typeValue);
|
c->SetSpellMaxThreshold(spellType, typeValue);
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::Green,
|
Chat::Green,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"Your [{}] maximum hold was set to [{}]%%.'",
|
"Your [{}] maximum hold was set to [{}%%].'",
|
||||||
c->GetSpellTypeNameByID(spellType),
|
c->GetSpellTypeNameByID(spellType),
|
||||||
c->GetSpellMaxThreshold(spellType)
|
c->GetSpellMaxThreshold(spellType)
|
||||||
).c_str()
|
).c_str()
|
||||||
|
|||||||
@@ -158,18 +158,18 @@ void command_spell_min_thresholds(Client* c, const Seperator* sep)
|
|||||||
c->Message(
|
c->Message(
|
||||||
Chat::Green,
|
Chat::Green,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"Your [{}] minimum hold is currently [{}]%%.'",
|
"Your [{}] minimum hold is currently [{}%%].'",
|
||||||
c->GetSpellTypeNameByID(spellType),
|
c->GetSpellTypeNameByID(spellType),
|
||||||
c->GetSpellMinThreshold(spellType)
|
c->GetSpellMinThreshold(spellType)
|
||||||
).c_str()
|
).c_str()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
c->SetSpellHold(spellType, typeValue);
|
c->SetSpellMinThreshold(spellType, typeValue);
|
||||||
c->Message(
|
c->Message(
|
||||||
Chat::Green,
|
Chat::Green,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"Your [{}] minimum hold was set to [{}]%%.'",
|
"Your [{}] minimum hold was set to [{}%%].'",
|
||||||
c->GetSpellTypeNameByID(spellType),
|
c->GetSpellTypeNameByID(spellType),
|
||||||
c->GetSpellMinThreshold(spellType)
|
c->GetSpellMinThreshold(spellType)
|
||||||
).c_str()
|
).c_str()
|
||||||
|
|||||||
Reference in New Issue
Block a user