mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Commands] Make #damage require a target (#2426)
Fixes annoying issue where it affected the client if no target
This commit is contained in:
parent
73f310d098
commit
78223b7ebf
@ -8,9 +8,10 @@ void command_damage(Client *c, const Seperator *sep)
|
||||
return;
|
||||
}
|
||||
|
||||
Mob* target = c;
|
||||
if (c->GetTarget()) {
|
||||
target = c->GetTarget();
|
||||
Mob* target = c->GetTarget();
|
||||
if (!target) {
|
||||
c->Message(Chat::White, "You must have a target to use #damage.");
|
||||
return;
|
||||
}
|
||||
|
||||
int64 damage = std::stoll(sep->arg[1], nullptr, 10);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user