$t->myData()->addTower(2)->addWall(3);
$common = $t->getList(['rarity'=>'Common', 'keyword'=>'Mage']);
$uncommon = $t->getList(['rarity'=>'Uncommon', 'keyword'=>'Mage']);
$t->setCard('my', $t->mode(), $t->drawCard(array_merge($common, $uncommon), $t->myData()->Hand, $t->mode(), 'drawCardList'));
if ($t->mode() == $t->cardPos()) {
$t->noNextCard();
}