mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[Commands] Cleanup #showspellslist Command. (#1703)
- Cleanup messages and display.
This commit is contained in:
+2
-10
@@ -13991,19 +13991,11 @@ void command_object(Client *c, const Seperator *sep)
|
||||
void command_showspellslist(Client *c, const Seperator *sep)
|
||||
{
|
||||
Mob *target = c->GetTarget();
|
||||
|
||||
if (!target) {
|
||||
c->Message(Chat::White, "Must target an NPC.");
|
||||
if (!target || !target->IsNPC()) {
|
||||
c->Message(Chat::White, "You must target an NPC to use this command.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!target->IsNPC()) {
|
||||
c->Message(Chat::White, "%s is not an NPC.", target->GetName());
|
||||
return;
|
||||
}
|
||||
|
||||
target->CastToNPC()->AISpellsList(c);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user