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:
Evan
2025-04-03 20:12:36 -07:00
parent a3a05f9ed2
commit 9d1b4f35e4
6 changed files with 35 additions and 14 deletions
+2 -1
View File
@@ -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";