wall bonus HP

This commit is contained in:
2025-01-10 09:47:39 -06:00
parent 62c188c5c7
commit abda30fc25
+1 -1
View File
@@ -412,7 +412,7 @@ public class Building extends AbstractWorldObject {
this.healthMax = this.getBlueprint().getMaxHealth(this.rank); this.healthMax = this.getBlueprint().getMaxHealth(this.rank);
this.setCurrentHitPoints(this.healthMax); 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 //add extra HP for city walls of R8 trees
City city = ZoneManager.getCityAtLocation(this.loc); City city = ZoneManager.getCityAtLocation(this.loc);
if(city != null){ if(city != null){