Nation dislodged if abandoned
This commit is contained in:
@@ -165,15 +165,20 @@ public class AbandonAssetMsgHandler extends AbstractClientMsgHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dislodge any realm
|
// Dislodge any realm and nations
|
||||||
|
|
||||||
if (sourceGuild.getOwnedCity().realm != null) {
|
if (sourceGuild.getOwnedCity().realm != null) {
|
||||||
sourceGuild.getOwnedCity().realm.abandonRealm();
|
sourceGuild.getOwnedCity().realm.abandonRealm();
|
||||||
BuildingManager.setRank(targetBuilding, 7);
|
BuildingManager.setRank(targetBuilding, 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceGuild.guildState = mbEnums.GuildState.Errant;
|
|
||||||
sourceGuild.getNation().getSubGuildList().remove(sourceGuild);
|
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.setNation(Guild.getErrantNation());
|
||||||
sourceGuild.setCityUUID(0);
|
sourceGuild.setCityUUID(0);
|
||||||
GuildManager.updateAllGuildTags(sourceGuild);
|
GuildManager.updateAllGuildTags(sourceGuild);
|
||||||
|
|||||||
Reference in New Issue
Block a user