fix(SNNBot): use 2° error gate for firing, remove unreliable gunTurnRemaining check

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 08:05:33 +02:00
parent 20a6132530
commit 6274c0d29c
+1 -1
View File
@@ -390,7 +390,7 @@ method run*(bot: SNNBot) =
# Fire gate: gun must be aimed and settled before firing
let energy = getEnergy()
let readyToFire = err < 1.0 and abs(getGunTurnRemaining()) < 1.0 and energy >= ENERGY_GUARD and bot.roundTick >= PATIENCE_TICKS
let readyToFire = err < 2.0 and energy >= ENERGY_GUARD and bot.roundTick >= PATIENCE_TICKS
if readyToFire:
bot.lastBulletSpeed = P2_SPEED
discard setFire(2.0)