Skip to content
Snippets Groups Projects
Unverified Commit 8982db37 authored by Thibault HUTTIN-PASSERON's avatar Thibault HUTTIN-PASSERON
Browse files

Fixed turns_number player stat increment

parent b72667b8
No related branches found
No related tags found
No related merge requests found
......@@ -10,10 +10,10 @@ trait SENNextPlayerStateActionMethodsTrait
$players = $this->loadPlayersBasicInfos();
$this->giveExtraTime( $player_id );
$this->incStat(1, 'turns_number', $player_id);
if( 1 === (int) $players[$player_id]["player_no"] )
{
$this->incStat( 1, 'turns_number' );
$this->incStat(1, 'turns_number', $player_id);
}
$this->gamestate->nextState( 'nextplayer' );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment