$t->production()->multiply(0);
$rarities = array();
$upgrades = ['Common' => 'Uncommon', 'Uncommon' => 'Rare'];
for ($i = 1; $i <= $t->handSize(); $i++) {
if ($t->getCard($t->myData()->Hand[$i])->hasKeyword('Beast')) {
$rarities[$i] = $t->getCard($t->myData()->Hand[$i])->getRarity();
}
}
foreach ($rarities as $i => $val) {
if (in_array($val, ['Common', 'Uncommon'])) {
$t->setCard('my', $i, $t->drawCard($t->getList(['rarity'=>$upgrades[$val], 'keyword'=>'Beast']), $t->myData()->Hand, $i, 'drawCardList'));
}
}