mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 22:56:37 +00:00
[Cleanup/Feature] Add support for bots to #showstats/#mystats (#3427)
* 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
This commit is contained in:
@@ -2,16 +2,19 @@
|
||||
|
||||
void command_mystats(Client *c, const Seperator *sep)
|
||||
{
|
||||
if (c->GetTarget() && c->GetPet()) {
|
||||
if (c->GetTarget()->IsPet() && c->GetTarget() == c->GetPet()) {
|
||||
c->GetTarget()->ShowStats(c);
|
||||
}
|
||||
else {
|
||||
c->ShowStats(c);
|
||||
}
|
||||
Mob* t = c;
|
||||
if (c->GetTarget()) {
|
||||
t = c->GetTarget();
|
||||
}
|
||||
else {
|
||||
c->ShowStats(c);
|
||||
|
||||
if (
|
||||
(t->IsPet() && t == c->GetPet()) ||
|
||||
(t->IsBot() && t->CastToBot()->GetOwner() && t->CastToBot()->GetOwner() == c)
|
||||
) {
|
||||
t->ShowStats(c);
|
||||
return;
|
||||
}
|
||||
|
||||
c->ShowStats(c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user