From abda30fc25a5ea98c17a5e1688d6602aa8fa1bac Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 10 Jan 2025 09:47:39 -0600 Subject: [PATCH] wall bonus HP --- src/engine/objects/Building.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/Building.java b/src/engine/objects/Building.java index 0412648e..8bc4025f 100644 --- a/src/engine/objects/Building.java +++ b/src/engine/objects/Building.java @@ -412,7 +412,7 @@ public class Building extends AbstractWorldObject { this.healthMax = this.getBlueprint().getMaxHealth(this.rank); this.setCurrentHitPoints(this.healthMax); - if(!this.ownerIsNPC){ + if(!this.ownerIsNPC && this.getBlueprint() != null && this.getBlueprint().isWallPiece()){ //add extra HP for city walls of R8 trees City city = ZoneManager.getCityAtLocation(this.loc); if(city != null){