From f7752193fcd71b5c5a470bbbb71a0164d49e6cc7 Mon Sep 17 00:00:00 2001 From: jedarden Date: Sun, 24 May 2026 10:47:28 -0400 Subject: [PATCH] fix(engine): zone should not kill bots before activation The executeZone function was killing bots outside the zone radius before the zone became active (ZoneStartTurn). This caused bots to die at turn 49 when the zone shouldn't start until turn 50. Added early return when ZoneActive is false, so zone killing only occurs after the zone has activated. --- engine/turn.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/turn.go b/engine/turn.go index 9f1fe3d..3777fc9 100644 --- a/engine/turn.go +++ b/engine/turn.go @@ -133,7 +133,11 @@ func (gs *GameState) executeZone() { } } - // Kill bots outside the zone + // Kill bots outside the zone (only when zone is active) + if !gs.ZoneActive { + return + } + for _, b := range gs.Bots { if !b.Alive { continue