[Bot] Restrict Bot Groups from spawning while Feigned. (#2761)

This commit is contained in:
Aeadoin authored and GitHub committed 2023-01-19 16:52:20 -06:00
1 parent d93ea9ed86
commit 090019cf83
1 file changed
+5
+5
View File
@@ -7798,6 +7798,11 @@ void bot_subcommand_botgroup_load(Client *c, const Seperator *sep)
return;
}
if (c->GetFeigned()) {
c->Message(Chat::White, "You cannot spawn a bot-group while feigned.");
return;
}
auto* owner_group = c->GetGroup();
if (owner_group) {
std::list<Client*> member_list;