$gameid = DB_get_gameid_by_hash($hash);
$gametype = DB_get_gametype_by_gameid($gameid);
- $NRcards = count(DB_get_hand($me));
+ $NRcards = count(DB_get_hand($hash));
$NRallcards = 0;
for ($i=1;$i<5;$i++)
switch ($RULES["call"])
{
case "1st-own-card":
- if( 4-($what/30) >= 12 - $NRcards + $offset)
+ if( 4-($what/30) >= 12 - ($NRcards + $offset))
return 1;
break;
case "5th-card":