Nation dislodged if abandoned
This commit is contained in:
1 parent
6f54df62c4
commit
a67bd0d90b
1 file changed
+7
-2
@@ -165,15 +165,20 @@ public class AbandonAssetMsgHandler extends AbstractClientMsgHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
// Dislodge any realm
|
||||
// Dislodge any realm and nations
|
||||
|
||||
if (sourceGuild.getOwnedCity().realm != null) {
|
||||
sourceGuild.getOwnedCity().realm.abandonRealm();
|
||||
BuildingManager.setRank(targetBuilding, 7);
|
||||
}
|
||||
|
||||
sourceGuild.guildState = mbEnums.GuildState.Errant;
|
||||
sourceGuild.getNation().getSubGuildList().remove(sourceGuild);
|
||||
|
||||
if (!sourceGuild.getNation().equals(sourceGuild))
|
||||
sourceGuild.guildState = mbEnums.GuildState.Errant;
|
||||
else
|
||||
sourceGuild.guildState = mbEnums.GuildState.Sworn;
|
||||
|
||||
sourceGuild.setNation(Guild.getErrantNation());
|
||||
sourceGuild.setCityUUID(0);
|
||||
GuildManager.updateAllGuildTags(sourceGuild);
|
||||
|
||||
Reference in new issue
Block a user