fix to abandoning tree as nation check

This commit is contained in:
2022-06-05 21:14:10 -05:00
parent 657cc0cf9e
commit 16e4f3fa7a
@@ -97,7 +97,7 @@ public class AbandonAssetMsgHandler extends AbstractClientMsgHandler {
{ {
// CHECK IF GUILD HAS A BANE DROPPED // CHECK IF GUILD HAS A BANE DROPPED
City city = ZoneManager.getCityAtLocation(building.getLoc()); City city = ZoneManager.getCityAtLocation(building.getLoc());
if(city.getGuild().isNation() == true) if(city.getGuild().getSubGuildList().isEmpty() == false)
{ {
//nations cant abandon their tree //nations cant abandon their tree
ErrorPopupMsg.sendErrorMsg(player, "Nations Cannot Abandon Their Capital!"); ErrorPopupMsg.sendErrorMsg(player, "Nations Cannot Abandon Their Capital!");