Better handling of abandoned tols
This commit is contained in:
1 parent
19e6c182c0
commit
6a946428bf
1 file changed
+3
-1
@@ -171,12 +171,14 @@ public class AbandonAssetMsgHandler extends AbstractClientMsgHandler {
|
||||
if (sourceGuild.getOwnedCity().realm != null)
|
||||
sourceGuild.getOwnedCity().realm.abandonRealm();
|
||||
|
||||
if (sourceGuild.getNation().equals(sourceGuild))
|
||||
if (sourceGuild.guildState.equals(GuildState.Sovereign))
|
||||
sourceGuild.guildState = GuildState.Errant;
|
||||
else
|
||||
sourceGuild.guildState = GuildState.Sworn;
|
||||
|
||||
sourceGuild.setCityUUID(0);
|
||||
GuildManager.updateAllGuildTags(sourceGuild);
|
||||
GuildManager.updateAllGuildBinds(sourceGuild, null);
|
||||
|
||||
// Guild no longer owns his tree.
|
||||
if (!DbManager.GuildQueries.SET_GUILD_OWNED_CITY(sourceGuild.getObjectUUID(), 0)) {
|
||||
|
||||
Reference in new issue
Block a user