mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
* Initial Push * Update classes.cpp * Update mob.cpp * Update mob.cpp * Update showstats.cpp * Update mystats.cpp * Remove unused variables. * Update mob.cpp * Update class.cpp * Update race.cpp * Update mob.h
21 lines
325 B
C++
Executable File
21 lines
325 B
C++
Executable File
#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);
|
|
}
|
|
|