From 3260582e3749af15d5022d6c62c896fc7ccd033b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 24 Feb 2023 01:04:29 -0500 Subject: [PATCH] validHotZone filters hotZone count. --- src/engine/gameManager/ZoneManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index 3fac70f9..463568f5 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -111,12 +111,13 @@ public enum ZoneManager { // Returns the number of available hotZones // remaining in this cycle (1am) + public static int availableHotZones() { int count = 0; for (Zone zone : ZoneManager.macroZones) - if (zone.hasBeenHotzone == false) + if (ZoneManager.validHotZone(zone)) count = count + 1; return count;