mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Mob* target = c;
|
Mob* target = c->GetTarget();
|
||||||
if (c->GetTarget()) {
|
if (!target) {
|
||||||
target = c->GetTarget();
|
c->Message(Chat::White, "You must have a target to use #damage.");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64 damage = std::stoll(sep->arg[1], nullptr, 10);
|
int64 damage = std::stoll(sep->arg[1], nullptr, 10);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user