protected static function beer() { if (GameUtils::checkTurn(self::$game, self::$player)) { if (self::$player['phase'] == 2 || self::$player['actual_lifes'] == 0) { $beer = self::$player->getHasPivoOnHand(); if ($beer) { if (self::$player->addLife()) { GameUtils::throwCard(self::$game, self::$player, $beer); } else { // ma max zivotov } } else { // nema pivo } } else { // najprv musi tahat karty } } else { Chat::addMessage('Nie si na rade.', self::$room, User::SYSTEM, self::$loggedUser['id']); } }