mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 19:40:23 +00:00
bufix: ports execution still active after port dies
This commit is contained in:
@@ -49,6 +49,10 @@ export class PortExecution implements Execution {
|
||||
}
|
||||
this.port = player.buildUnit(UnitType.Port, 0, spawns[0])
|
||||
}
|
||||
if (!this.port.isActive()) {
|
||||
this.active = false
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
const alliedPorts = this.player().alliances().map(a => a.other(this.player())).flatMap(p => p.units(UnitType.Port))
|
||||
|
||||
Reference in New Issue
Block a user