Realm count updated properly.
This commit is contained in:
@@ -106,6 +106,9 @@ public class DismissGuildHandler extends AbstractClientMsgHandler {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "A Serious error has occured. Please post details for to ensure transaction integrity");
|
||||
return true;
|
||||
}
|
||||
if (toDismiss.guildState.equals(mbEnums.GuildState.Province))
|
||||
nation.realmsOwned = nation.realmsOwned - 1;
|
||||
|
||||
nation.getSubGuildList().remove(toDismiss);
|
||||
toDismiss.guildState = mbEnums.GuildState.Sovereign;
|
||||
toDismiss.setNation(toDismiss);
|
||||
@@ -131,7 +134,6 @@ public class DismissGuildHandler extends AbstractClientMsgHandler {
|
||||
|
||||
City.lastCityUpdate = System.currentTimeMillis();
|
||||
|
||||
|
||||
ArrayList<PlayerCharacter> guildMembers = SessionManager.getActivePCsInGuildID(nation.getObjectUUID());
|
||||
|
||||
for (PlayerCharacter member : guildMembers) {
|
||||
|
||||
@@ -107,6 +107,11 @@ public class SwearInGuildHandler extends AbstractClientMsgHandler {
|
||||
protectorate.guildState.equals(GuildState.Province))
|
||||
nation.guildState = GuildState.Nation;
|
||||
|
||||
// Nation realm count update
|
||||
|
||||
if (protectorate.guildState.equals(GuildState.Province))
|
||||
nation.realmsOwned = nation.realmsOwned + 1;
|
||||
|
||||
SendGuildEntryMsg msg = new SendGuildEntryMsg(player);
|
||||
dispatch = Dispatch.borrow(player, msg);
|
||||
DispatchManager.dispatchMsgDispatch(dispatch, mbEnums.DispatchChannel.SECONDARY);
|
||||
|
||||
Reference in New Issue
Block a user