Nation dislodged if abandoned
This commit is contained in:
@@ -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