Browse Source

shrine delete button causes rubble pile

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
fa5cdae17e
  1. 1
      src/engine/net/client/handlers/DestroyBuildingHandler.java

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

@ -74,6 +74,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler { @@ -74,6 +74,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
// destorying a shrine will yield a rubble pile for looting
if (blueprint.getBuildingGroup() == BuildingGroup.SHRINE) {
building.modifyHealth(-building.getHealth(), origin.getPlayerCharacter());
building.destroyOrDerank(origin.getPlayerCharacter());
return true;
}

Loading…
Cancel
Save