Browse Source

fix to abandoning tree as nation check

pull/13/head
FatBoy-DOTC 2 years ago
parent
commit
16e4f3fa7a
  1. 2
      src/engine/net/client/handlers/AbandonAssetMsgHandler.java

2
src/engine/net/client/handlers/AbandonAssetMsgHandler.java

@ -97,7 +97,7 @@ public class AbandonAssetMsgHandler extends AbstractClientMsgHandler { @@ -97,7 +97,7 @@ public class AbandonAssetMsgHandler extends AbstractClientMsgHandler {
{
// CHECK IF GUILD HAS A BANE DROPPED
City city = ZoneManager.getCityAtLocation(building.getLoc());
if(city.getGuild().isNation() == true)
if(city.getGuild().getSubGuildList().isEmpty() == false)
{
//nations cant abandon their tree
ErrorPopupMsg.sendErrorMsg(player, "Nations Cannot Abandon Their Capital!");

Loading…
Cancel
Save