mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 17:50:24 +00:00
bugfix: SpawnExecution was not attaching PlayerExecution to humans
bugfix: WinModal was saying player died even if they hadn't spawned added hasSpawned() method to player
This commit is contained in:
@@ -215,7 +215,8 @@ export class WinModal extends LitElement implements Layer {
|
||||
!this.hasShownDeathModal &&
|
||||
myPlayer &&
|
||||
!myPlayer.isAlive() &&
|
||||
!this.game.inSpawnPhase()
|
||||
!this.game.inSpawnPhase() &&
|
||||
myPlayer.hasSpawned()
|
||||
) {
|
||||
this.hasShownDeathModal = true;
|
||||
this._title = "You died";
|
||||
|
||||
Reference in New Issue
Block a user