From b46eb8639da10b5901d2cf981aa2bf6617b51b3a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 21 May 2024 14:34:17 -0500 Subject: [PATCH] capturing city will cede all buildinsg to conquerer --- src/engine/objects/Bane.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/objects/Bane.java b/src/engine/objects/Bane.java index f7f23751..ed564cd9 100644 --- a/src/engine/objects/Bane.java +++ b/src/engine/objects/Bane.java @@ -607,6 +607,10 @@ public final class Bane { DispatchMessage.dispatchMsgToAll(msg); } + for(AbstractWorldObject awo : WorldGrid.getObjectsInRangePartial(this.getCity().loc,1500,MBServerStatics.MASK_BUILDING)){ + Building building = (Building)awo; + if(building.setOwner(this.getOwner())); + } break; case DESTROY: