Chaos dwarf
Replace a card in hand with self
Raises wall based on replaced card rarity (C-2, U-6, R-14)
Cost (B / G / R)
0 / 0 / 3
BB code
Effect
Replace a card in hand with self
Raises wall based on replaced card rarity (C-2, U-6, R-14)
Code
$rarities = ['Common' => 2, 'Uncommon' => 6, 'Rare' => 14];
$cur_rarity = $t->getCard($t->myData()->Hand[$t->mode()])->getRarity();
$t->myData()->addWall($rarities[$cur_rarity]);
if ($t->mode() == $t->cardPos()) {
$t->noNextCard();
}
else {
$t->replaceCard('my', $t->mode(), $t->card()->id());
}