alert when unit is destroyed

This commit is contained in:
evanpelle
2024-12-10 15:45:17 -08:00
committed by Evan
parent 67288cb49f
commit f34a8dca13
4 changed files with 24 additions and 19 deletions
@@ -28,12 +28,6 @@ export class MissileSiloExecution implements Execution {
}
this.silo = this.player.buildUnit(UnitType.MissileSilo, 0, tile)
}
if (!this.silo.tile().hasOwner()) {
this.silo.delete()
this.active = false
return
}
}
owner(): MutablePlayer {