Browse Source

Spire effects reach to siege bounds.

pull/13/head
MagicBot 2 years ago
parent
commit
18bf19502f
  1. 6
      src/engine/objects/City.java

6
src/engine/objects/City.java

@ -999,11 +999,9 @@ public class City extends AbstractWorldObject {
HashSet<Integer> currentMemory; HashSet<Integer> currentMemory;
PlayerCharacter player; PlayerCharacter player;
// Gather current list of players within a distance defined by the x extent of the // Gather current list of players within a distance defined by the seige bounds
// 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.
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<>(); currentMemory = new HashSet<>();
for (AbstractWorldObject playerObject : currentPlayers) { for (AbstractWorldObject playerObject : currentPlayers) {

Loading…
Cancel
Save