mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 09:28:21 +00:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#include "../client.h"
|
||||
|
||||
void command_shownumhits(Client *c, const Seperator *sep)
|
||||
{
|
||||
c->ShowNumHits();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user