mirror of
https://github.com/solero/houdini.git
synced 2024-11-28 08:27:18 +00:00
Fix bug where Sensei is unbeatable at black belt
This commit is contained in:
parent
96da1c3c12
commit
3e543b59cc
@ -413,7 +413,7 @@ async def handle_update_sensei_game(p):
|
|||||||
@handlers.handler(XTPacket('zm', ext='z'), match=['deal'])
|
@handlers.handler(XTPacket('zm', ext='z'), match=['deal'])
|
||||||
@handlers.waddle(SenseiLogic)
|
@handlers.waddle(SenseiLogic)
|
||||||
async def handle_send_sensei_deal(p, action: str):
|
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
|
sensei, me = p.waddle.ninjas
|
||||||
deck = Counter((card.card_id for card in p.cards.values() if
|
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
|
can_beat_sensei or p.server.cards[card.card_id].power_id == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user