changed conditions so stamina is full upon time-out respawning back at sanctuary (#1319)
Some checks failed
Publish Docs / docs (push) Has been cancelled
Publish Docker Image / docker (push) Has been cancelled
Test / test (push) Has been cancelled

This commit is contained in:
Fate-JH 2025-11-26 03:03:18 -05:00 committed by GitHub
parent 09e648e953
commit ba8a7caedf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2988,7 +2988,7 @@ class ZoningOperations(
}
val toSpawnPoint = physSpawnPoint.collect { case o: PlanetSideGameObject with FactionAffinity => SourceEntry(o) }
respawnTimer = context.system.scheduler.scheduleOnce(respawnTime) {
if (player.isBackpack) { // if the player is dead, he is handled as dead infantry, even if he died in a vehicle
if (!player.isAlive && player.History.nonEmpty) { // if the player is dead, handle as dead infantry, even if dead in a vehicle
// new player is spawning
val newPlayer = RespawnClone(player)
newPlayer.LogActivity(SpawningActivity(PlayerSource(newPlayer), toZoneNumber, toSpawnPoint))