mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
22 lines
345 B
C++
Executable File
22 lines
345 B
C++
Executable File
#include "../bot.h"
|
|
#include "../client.h"
|
|
|
|
void command_mystats(Client *c, const Seperator *sep)
|
|
{
|
|
Mob* t = c;
|
|
if (c->GetTarget()) {
|
|
t = c->GetTarget();
|
|
}
|
|
|
|
if (
|
|
(t->IsPet() && t == c->GetPet()) ||
|
|
(t->IsBot() && t->CastToBot()->GetOwner() && t->CastToBot()->GetOwner() == c)
|
|
) {
|
|
t->ShowStats(c);
|
|
return;
|
|
}
|
|
|
|
c->ShowStats(c);
|
|
}
|
|
|