From 18bf19502fbe230f2b15609807388e92c4521643 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 5 Jun 2022 17:02:44 -0400 Subject: [PATCH] Spire effects reach to siege bounds. --- src/engine/objects/City.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index f4ed1b52..87788ef6 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -999,11 +999,9 @@ public class City extends AbstractWorldObject { HashSet currentMemory; PlayerCharacter player; - // Gather current list of players within a distance defined by the x extent of the - // city zone. As we want to grab all players with even a remote possibility of - // being in the zone, we might have to increase this distance. + // Gather current list of players within a distance defined by the seige bounds - currentPlayers = WorldGrid.getObjectsInRangePartial(this.location, this.parentZone.getBounds().getHalfExtents().x * 1.41421356237, MBServerStatics.MASK_PLAYER); + currentPlayers = WorldGrid.getObjectsInRangePartial(this.location, CityBoundsType.SIEGE.extents, MBServerStatics.MASK_PLAYER); currentMemory = new HashSet<>(); for (AbstractWorldObject playerObject : currentPlayers) {