LttP: DeathLink: fix an if tree derp

This commit is contained in:
Fabian Dill 2021-11-11 21:08:16 +01:00
parent 8316a1902d
commit fd07bc3f2c
1 changed files with 2 additions and 2 deletions

View File

@ -891,11 +891,11 @@ async def game_watcher(ctx: Context):
ctx.death_state = DeathState.dead
await ctx.send_death()
# in this state we care about confirming a kill, to move state to dead
elif DeathState.killing_player:
elif ctx.death_state == DeathState.killing_player:
# this is being handled in deathlink_kill_player(ctx) already
pass
# in this state we wait until the player is alive again
elif DeathState.dead:
elif ctx.death_state == DeathState.dead:
if not currently_dead:
ctx.death_state = DeathState.alive