From 3e543b59cc54cb5281d20071a6b6066e891b66da Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 5 Jun 2020 22:45:44 +0100 Subject: [PATCH] Fix bug where Sensei is unbeatable at black belt --- houdini/handlers/games/ninja/card.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/games/ninja/card.py b/houdini/handlers/games/ninja/card.py index a15f32f..86efe3c 100644 --- a/houdini/handlers/games/ninja/card.py +++ b/houdini/handlers/games/ninja/card.py @@ -413,7 +413,7 @@ async def handle_update_sensei_game(p): @handlers.handler(XTPacket('zm', ext='z'), match=['deal']) @handlers.waddle(SenseiLogic) async def handle_send_sensei_deal(p, action: str): - can_beat_sensei = p.ninja_rank > len(CardJitsuLogic.ItemAwards) - 1 + can_beat_sensei = p.ninja_rank >= len(CardJitsuLogic.ItemAwards) - 1 sensei, me = p.waddle.ninjas deck = Counter((card.card_id for card in p.cards.values() if can_beat_sensei or p.server.cards[card.card_id].power_id == 0