|
|
@ -71,9 +71,11 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler { |
|
|
|
if (blueprint.getBuildingGroup() == BuildingGroup.TOL) |
|
|
|
if (blueprint.getBuildingGroup() == BuildingGroup.TOL) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
// Can't destroy a shrine
|
|
|
|
// 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()); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Cannot destroy mines outside of normal mine mechanics
|
|
|
|
// Cannot destroy mines outside of normal mine mechanics
|
|
|
|
|
|
|
|
|
|
|
|