forked from MagicBane/Server
Province qualifies as nation too.
This commit is contained in:
@@ -101,7 +101,8 @@ public class SwearInGuildHandler extends AbstractClientMsgHandler {
|
|||||||
GuildManager.updateAllGuildTags(protectorate);
|
GuildManager.updateAllGuildTags(protectorate);
|
||||||
|
|
||||||
if (nation.guildState == GuildState.Sovereign)
|
if (nation.guildState == GuildState.Sovereign)
|
||||||
if (protectorate.guildState.equals(GuildState.Protectorate))
|
if (protectorate.guildState.equals(GuildState.Protectorate) ||
|
||||||
|
protectorate.guildState.equals(GuildState.Province))
|
||||||
nation.guildState = GuildState.Nation;
|
nation.guildState = GuildState.Nation;
|
||||||
|
|
||||||
SendGuildEntryMsg msg = new SendGuildEntryMsg(player);
|
SendGuildEntryMsg msg = new SendGuildEntryMsg(player);
|
||||||
|
|||||||
@@ -741,8 +741,6 @@ public class Guild extends AbstractWorldObject {
|
|||||||
|
|
||||||
this.guildState = GuildManager.calcuateGuildState(this);
|
this.guildState = GuildManager.calcuateGuildState(this);
|
||||||
|
|
||||||
Logger.info(this.name + ":" + this.guildState + ":" + this.nation.name);
|
|
||||||
|
|
||||||
if (this.getOwnedCity() == null)
|
if (this.getOwnedCity() == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user