Browse Source

shrine delete button causes rubble pile

lakebane-master
FatBoy-DOTC 7 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 {
// destorying a shrine will yield a rubble pile for looting // destorying a shrine will yield a rubble pile for looting
if (blueprint.getBuildingGroup() == BuildingGroup.SHRINE) { if (blueprint.getBuildingGroup() == BuildingGroup.SHRINE) {
building.modifyHealth(-building.getHealth(), origin.getPlayerCharacter()); building.modifyHealth(-building.getHealth(), origin.getPlayerCharacter());
building.destroyOrDerank(origin.getPlayerCharacter());
return true; return true;
} }

Loading…
Cancel
Save