$uncommon = $t->getList(['rarity'=>'Uncommon', 'keyword'=>'Undead']);
$rare = $t->getList(['rarity'=>'Rare', 'keyword'=>'Undead']);
$t->nextCard($t->drawCard(array_merge($uncommon, $rare), $t->myData()->Hand, $t->cardPos(), 'drawCardList'));
if ($t->myData()->getToken('Undead') > 50) {
$cur_card = $t->getCard($t->nextCard());
$t->myData()
->addBricks(min($cur_card->getResources('Bricks'), 10))
->addGems(min($cur_card->getResources('Gems'), 10))
->addRecruits(min($cur_card->getResources('Recruits'), 10));
}