From fd07bc3f2c26a95a43d44bc66cbb87fe9a34f9e5 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 11 Nov 2021 21:08:16 +0100 Subject: [PATCH] LttP: DeathLink: fix an if tree derp --- LttPClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LttPClient.py b/LttPClient.py index 3746c5a3..d1ec4921 100644 --- a/LttPClient.py +++ b/LttPClient.py @@ -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