$t->myData()->addWall(10);
$t->hisData()->addStock(-3);
$storage = array();
for ($i = 1; $i <= $t->handSize(); $i++) {
$cur_card = $t->getCard($t->myData()->Hand[$i]);
if (!$cur_card->hasKeyword('Brigand') && $cur_card->getRarity() != 'Rare' && $i != $t->cardPos()) {
$storage[] = $i;
}
}
if (count($storage) > 0) {
shuffle($storage);
$brigand_list = array_merge($t->getList(['rarity'=>'Uncommon', 'keyword'=>'Brigand']), $t->getList(['rarity'=>'Rare', 'keyword'=>'Brigand']));
for ($i = 0; $i < count($storage) && $i < 3; $i++) {
$t->setCard('my', $storage[$i], $t->drawCard($brigand_list, $t->myData()->Hand, $storage[$i], 'drawCardList'));
}
}