refactor: FleetState

This commit is contained in:
Ilia Denisov
2026-02-04 20:26:52 +02:00
parent c1d397c993
commit 46b4ab96f0
6 changed files with 77 additions and 43 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ func SingleBattle(c *Cache, b *Battle) {
})
if destroyed {
c.ShipGroupNumber(defIdx, c.ShipGroup(defIdx).Number-1)
c.ShipGroupDestroyItem(defIdx)
}
if c.ShipGroup(defIdx).Number == 0 {
delete(b.attacker, defIdx) // Eliminated group cant attack anyone