$count = min(4, $t->keywordCount($t->myData()->Hand, 'Holy'));
$storage = array();
for ($i = 1; $i <= $t->handSize(); $i++) {
$cur_card = $t->getCard($t->hisData()->Hand[$i]);
if ($cur_card->hasKeyword('any') && !$cur_card->hasKeyword('Holy') && $cur_card->getRarity() == 'Common') {
$storage[] = $i;
}
}
if (count($storage) > 0) {
shuffle($storage);
for ($i = 0; ($i < count($storage)) && ($i < $count); $i++) {
$cur_pos = $storage[$i];
$t->setCard('his', $cur_pos, $t->drawCard($t->getList(['rarity'=>'Common', 'keyword'=>'Holy']), $t->hisData()->Hand, $cur_pos, 'drawCardList'));
}
}