Browse Source

guilds that have sub guilds can no longer be invited to join nations

magicbox-1.5.2.1
FatBoy-DOTC 4 months ago
parent
commit
0d5cef1652
  1. 3
      src/engine/net/client/handlers/InviteToSubHandler.java

3
src/engine/net/client/handlers/InviteToSubHandler.java

@ -102,6 +102,9 @@ public class InviteToSubHandler extends AbstractClientMsgHandler { @@ -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.");

Loading…
Cancel
Save