mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-18 15:58:21 +00:00
[Commands] Cleanup #freeze and #unfreeze Commands. (#2102)
- Cleanup messages and logic. - Remove the ability to #freeze yourself.
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
void command_unfreeze(Client *c, const Seperator *sep)
|
||||
{
|
||||
if (c->GetTarget() != 0) {
|
||||
c->GetTarget()->SendAppearancePacket(AT_Anim, ANIM_STAND);
|
||||
}
|
||||
else {
|
||||
c->Message(Chat::White, "ERROR: Unfreeze requires a target.");
|
||||
if (!c->GetTarget()) {
|
||||
c->Message(Chat::White, "You must have a target to use this command.");
|
||||
return;
|
||||
}
|
||||
|
||||
c->GetTarget()->SendAppearancePacket(AT_Anim, ANIM_STAND);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user