2025-12-26 20:58:07 -08:00

19 lines
353 B
C++
Executable File

#include "zone/client.h"
void command_undye(Client *c, const Seperator *sep)
{
auto target = c;
if (c->GetTarget() && c->GetTarget()->IsClient() && c->GetGM()) {
target = c->GetTarget()->CastToClient();
}
target->Undye();
c->Message(
Chat::White,
fmt::format(
"Undyed armor for {}.",
c->GetTargetDescription(target)
).c_str()
);
}