Browse Source

added message to player trying to delete asset during active siege

pull/13/head
FatBoy-DOTC 3 years ago
parent
commit
a62617324d
  1. 2
      src/engine/net/client/handlers/DestroyBuildingHandler.java

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

@ -8,6 +8,7 @@ import engine.gameManager.BuildingManager;
import engine.net.client.ClientConnection; import engine.net.client.ClientConnection;
import engine.net.client.msg.ClientNetMsg; import engine.net.client.msg.ClientNetMsg;
import engine.net.client.msg.DestroyBuildingMsg; import engine.net.client.msg.DestroyBuildingMsg;
import engine.net.client.msg.PlaceAssetMsg;
import engine.objects.*; import engine.objects.*;
/* /*
@ -56,6 +57,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
return true; return true;
Bane bane = city.getBane(); Bane bane = city.getBane();
if(bane.getSiegePhase() == Enum.SiegePhase.WAR && bane != null) { if(bane.getSiegePhase() == Enum.SiegePhase.WAR && bane != null) {
PlaceAssetMsg.sendPlaceAssetError(origin, 171, pc.getName());
return true; return true;
} }
// Can't destroy a tree of life // Can't destroy a tree of life

Loading…
Cancel
Save