mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-26 05:22:25 +00:00
[Bug Fix] Fix duplicate messages in #npcedit (#3372)
# Notes - `#npcedit special_attacks` and `#npcedit special_abilities` send duplicate messages since the `d` variable wasn't being set and a message was being sent instead, meaning a message was sent inside the condition as well as a blank message at the bottom of the command.
This commit is contained in:
parent
f0152cef66
commit
a3107cc54d
@ -420,24 +420,18 @@ void command_npcedit(Client *c, const Seperator *sep)
|
|||||||
} else if (!strcasecmp(sep->arg[1], "special_attacks")) {
|
} else if (!strcasecmp(sep->arg[1], "special_attacks")) {
|
||||||
std::string special_attacks = sep->argplus[2];
|
std::string special_attacks = sep->argplus[2];
|
||||||
n.npcspecialattks = special_attacks;
|
n.npcspecialattks = special_attacks;
|
||||||
c->Message(
|
d = fmt::format(
|
||||||
Chat::Yellow,
|
|
||||||
fmt::format(
|
|
||||||
"{} is now using the following Special Attacks '{}'.",
|
"{} is now using the following Special Attacks '{}'.",
|
||||||
npc_id_string,
|
npc_id_string,
|
||||||
special_attacks
|
special_attacks
|
||||||
).c_str()
|
|
||||||
);
|
);
|
||||||
} else if (!strcasecmp(sep->arg[1], "special_abilities")) {
|
} else if (!strcasecmp(sep->arg[1], "special_abilities")) {
|
||||||
std::string special_abilities = sep->argplus[2];
|
std::string special_abilities = sep->argplus[2];
|
||||||
n.special_abilities = special_abilities;
|
n.special_abilities = special_abilities;
|
||||||
c->Message(
|
d = fmt::format(
|
||||||
Chat::Yellow,
|
|
||||||
fmt::format(
|
|
||||||
"{} is now using the following Special Abilities '{}'.",
|
"{} is now using the following Special Abilities '{}'.",
|
||||||
npc_id_string,
|
npc_id_string,
|
||||||
special_abilities
|
special_abilities
|
||||||
).c_str()
|
|
||||||
);
|
);
|
||||||
} else if (!strcasecmp(sep->arg[1], "aggroradius")) {
|
} else if (!strcasecmp(sep->arg[1], "aggroradius")) {
|
||||||
if (sep->IsNumber(2)) {
|
if (sep->IsNumber(2)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user