[Commands] Cleanup #showbuffs Command (#3439)

* [Commands] Cleanup #showbuffs Command

# Notes
- Cleaned up messages and logic.
- Removed unnecessary itembonuses/spellbonuses stuff.
- Removed `Mob::ShowBuffList` as it's just a copy of this method.

* Update mob.cpp

* Further cleanup.

* Update mob.cpp

* Update mob.cpp
This commit is contained in:
Alex King
2023-06-25 23:59:47 -04:00
committed by GitHub
parent 050aba65b6
commit ef7a3cae17
9 changed files with 52 additions and 74 deletions
+5 -5
View File
@@ -2,11 +2,11 @@
void command_showbuffs(Client *c, const Seperator *sep)
{
if (c->GetTarget() == 0) {
c->CastToMob()->ShowBuffs(c);
}
else {
c->GetTarget()->CastToMob()->ShowBuffs(c);
Mob* t = c;
if (c->GetTarget()) {
t = c->GetTarget();
}
t->ShowBuffs(c);
}
-8
View File
@@ -1,8 +0,0 @@
#include "../client.h"
void command_shownumhits(Client *c, const Seperator *sep)
{
c->ShowNumHits();
return;
}