From 0d5cef16522529abb37a04df8887e0e19cf726b3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 21 Jul 2024 19:36:17 -0500 Subject: [PATCH] guilds that have sub guilds can no longer be invited to join nations --- src/engine/net/client/handlers/InviteToSubHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/net/client/handlers/InviteToSubHandler.java b/src/engine/net/client/handlers/InviteToSubHandler.java index 65551bb9..a6a49cd9 100644 --- a/src/engine/net/client/handlers/InviteToSubHandler.java +++ b/src/engine/net/client/handlers/InviteToSubHandler.java @@ -102,6 +102,9 @@ public class InviteToSubHandler extends AbstractClientMsgHandler { //source guild is limited to 7 subs //TODO this should be based on TOL rank + //cannot be subbed into a nation if you already have your own sub guilds + if(targetGuild.getSubGuildList() != null && targetGuild.getSubGuildList().size() > 0) + return true; if (!sourceGuild.canSubAGuild(targetGuild)) { sendChat(source, "This Guild can't be subbed.");