From b963ac0a3dde558864ba791a095b0b4f6ea95a31 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 22 Jul 2009 14:06:05 -0400 Subject: [PATCH] Correct detection of hero in FTP stud games. --- pyfpdb/FulltiltToFpdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index a5077777..83811d9f 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -263,10 +263,10 @@ follow : whether to tail -f the input""" else: oldcards = found.group('OLDCARDS').split(' ') - if street == 'THIRD' and len(newcards) == 3: # hero in stud game + if street == 'THIRD' and len(oldcards) == 2: # hero in stud game hand.hero = player hand.dealt.add(player) # need this for stud?? - hand.addHoleCards(street, player, closed=newcards[0:2], open=[newcards[2]], shown=False, mucked=False, dealt=False) + hand.addHoleCards(street, player, closed=oldcards, open=newcards, shown=False, mucked=False, dealt=False) else: hand.addHoleCards(street, player, open=newcards, closed=oldcards, shown=False, mucked=False, dealt=False)