mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-03-09 15:30:31 +00:00
attempt at mitigating geowarp immortality (#288)
This commit is contained in:
parent
aec9c15bdd
commit
cea105042c
1 changed files with 2 additions and 1 deletions
|
|
@ -5502,7 +5502,6 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
case msg @ WarpgateRequest(continent_guid, building_guid, dest_building_guid, dest_continent_guid, unk1, unk2) =>
|
||||
log.info(s"WarpgateRequest: $msg")
|
||||
if(deadState != DeadState.RespawnTime) {
|
||||
deadState = DeadState.RespawnTime
|
||||
continent.Buildings.values.find(building => building.GUID == building_guid) match {
|
||||
case Some(wg : WarpGate) if (wg.Active && (GetKnownVehicleAndSeat() match {
|
||||
case (Some(vehicle), _) =>
|
||||
|
|
@ -5510,12 +5509,14 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
|||
case _ =>
|
||||
true
|
||||
})) =>
|
||||
deadState = DeadState.RespawnTime
|
||||
cluster ! Zone.Lattice.RequestSpecificSpawnPoint(dest_continent_guid.guid, player, dest_building_guid)
|
||||
|
||||
case Some(wg : WarpGate) if(!wg.Active) =>
|
||||
log.info(s"WarpgateRequest: inactive WarpGate")
|
||||
|
||||
case _ =>
|
||||
deadState = DeadState.RespawnTime
|
||||
RequestSanctuaryZoneSpawn(player, continent.Number)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue