eqemu-server/zone/gm_commands/set/set_hp_full.cpp
2025-12-26 20:58:07 -08:00

21 lines
321 B
C++

#include "zone/client.h"
void SetHPFull(Client *c, const Seperator *sep)
{
Mob* t = c;
if (c->GetTarget()) {
t = c->GetTarget();
}
t->RestoreHealth();
c->Message(
Chat::White,
fmt::format(
"Set {} to full Health ({}).",
c->GetTargetDescription(t),
Strings::Commify(t->GetMaxHP())
).c_str()
);
}