forked from MagicBane/Server
Merge remote-tracking branch 'origin/nation-sub-limits' into post-wipe-merge
This commit is contained in:
@@ -565,11 +565,10 @@ public class Guild extends AbstractWorldObject {
|
|||||||
|
|
||||||
if (this.equals(toSub))
|
if (this.equals(toSub))
|
||||||
return false;
|
return false;
|
||||||
|
switch(this.guildState) {
|
||||||
switch(this.guildState){
|
case Nation:
|
||||||
case Nation:
|
case Sovereign:
|
||||||
case Sovereign:
|
canSub = true;
|
||||||
canSub = true;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
canSub = false;
|
canSub = false;
|
||||||
@@ -583,7 +582,10 @@ public class Guild extends AbstractWorldObject {
|
|||||||
default:
|
default:
|
||||||
canSub = false;
|
canSub = false;
|
||||||
}
|
}
|
||||||
|
City nationCap = City.getCity(nation.cityUUID);
|
||||||
|
if (nation.getSubGuildList().size() >= nationCap.getRank()) {
|
||||||
|
canSub = false;
|
||||||
|
}
|
||||||
return canSub;
|
return canSub;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user