From a62617324d4834d44544300c6278353c7c4c129c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 5 Jun 2022 17:03:44 -0500 Subject: [PATCH] added message to player trying to delete asset during active siege --- src/engine/net/client/handlers/DestroyBuildingHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/net/client/handlers/DestroyBuildingHandler.java b/src/engine/net/client/handlers/DestroyBuildingHandler.java index ed58c0fd..65578faf 100644 --- a/src/engine/net/client/handlers/DestroyBuildingHandler.java +++ b/src/engine/net/client/handlers/DestroyBuildingHandler.java @@ -8,6 +8,7 @@ import engine.gameManager.BuildingManager; import engine.net.client.ClientConnection; import engine.net.client.msg.ClientNetMsg; import engine.net.client.msg.DestroyBuildingMsg; +import engine.net.client.msg.PlaceAssetMsg; import engine.objects.*; /* @@ -56,6 +57,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler { return true; Bane bane = city.getBane(); if(bane.getSiegePhase() == Enum.SiegePhase.WAR && bane != null) { + PlaceAssetMsg.sendPlaceAssetError(origin, 171, pc.getName()); return true; } // Can't destroy a tree of life