From d421f362b8318cd7d016723da4f735fd6fa90a96 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 7 Nov 2010 10:13:13 -0800 Subject: [PATCH] BUGFIX: 9-cards rule for re/contra: couldn't call <=60 with more than 9 cards and no90 called only this special case was wrong, everything else looks ok. --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.php b/include/functions.php index af2b3e5..5343d36 100644 --- a/include/functions.php +++ b/include/functions.php @@ -856,12 +856,12 @@ function can_call($what,$hash) } else if ( 9 == ($NRcards + $offset)) { - if( ($mincall>=0 && $mincall==120) ) + if( ($mincall>=0 && $mincall<=120 && $what<=90 ) ) return 2; } else if ( 9 < ($NRcards + $offset)) { - if( ($mincall>=0 && $mincall==120) ) + if( ($mincall>=0 && $mincall<=120 && $what<=90 ) ) return 1; } else if ( 6 == ($NRcards + $offset)) -- 2.25.1