Flaming mirage
Attack: 21
If last card was Burning up to 2 copies of that card will replace non-rare non-Burning cards in hand
Cost (B / G / R)
0 / 11 / 11
BB code
Effect
Attack: 21
If last card was Burning up to 2 copies of that card will replace non-rare non-Burning cards in hand
Code
$t->hisData()->attack(21);
if ($t->myLastCard()->hasKeyword('Burning')) {
$storage = array();
for ($i = 1; $i <= $t->handSize(); $i++) {
$cur_card = $t->getCard($t->myData()->Hand[$i]);
if (!$cur_card->hasKeyword('Burning') && $cur_card->getRarity() != 'Rare') {
$storage[] = $i;
}
}
$count = min(count($storage), 2);
if ($count > 0) {
shuffle($storage);
for ($k = 0; $k < $count; $k++) {
$i = $storage[$k];
$t->setCard('my', $i, $t->myData()->LastCard[$t->myLastCardIndex()], ['reveal' => true]);
}
}
}