From e371549d29842f29ef8b08a38fceef7951ec9e60 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 7 Aug 2020 18:07:35 +0100 Subject: [PATCH] Check that player has won a sensei battle before upgrading to fire ninja --- houdini/handlers/games/ninja/fire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/games/ninja/fire.py b/houdini/handlers/games/ninja/fire.py index 9993085..52ecf0d 100644 --- a/houdini/handlers/games/ninja/fire.py +++ b/houdini/handlers/games/ninja/fire.py @@ -540,7 +540,7 @@ async def fire_ninja_progress(p, finish_position=1): speed = type(p.waddle).RankSpeed points = math.floor((25 / (p.fire_ninja_rank+1) / finish_position) * speed) await p.update(fire_ninja_progress=p.fire_ninja_progress+points).apply() - elif p.fire_ninja_rank == 4 and finish_position == 1: + elif type(p.waddle) == FireSenseiLogic and p.fire_ninja_rank == 4 and finish_position == 1: await p.update(fire_ninja_progress=100).apply() if p.fire_ninja_progress >= 100: await fire_ninja_rank_up(p)