if ($t->keywordCount($t->myData()->Hand, 'Unliving') > 3) {
$hisCard = $t->getCard($t->hisData()->Hand[$t->mode()]);
$t->myData()
->addBricks(min(round($hisCard->getResources('Bricks') / 2) , 20))
->addGems(min(round($hisCard->getResources('Gems') / 2) , 20))
->addRecruits(min(round($hisCard->getResources('Recruits') / 2) , 20));
}
$t->setCard('his', $t->mode(), $t->drawCard($t->hisDeck(), $t->hisData()->Hand, $t->mode(), 'drawCardDifferent'));