Cursed amulet
Replace a card in opponent's hand with self
Opponent gains N random resources
N based on replaced card rarity (C-1, U-4, R-10)
Cost (B / G / R)
0 / 0 / 0
BB code
Effect
Replace a card in opponent's hand with self
Opponent gains N random resources
N based on replaced card rarity (C-1, U-4, R-10)
Code
$rarities = ['Common' => 1, 'Uncommon' => 4, 'Rare' => 10];
$rarity = $t->getCard($t->hisData()->Hand[$t->mode()])->getRarity();
$t->hisData()->addRandomResources($rarities[$rarity]);
$t->setCard('his', $t->mode(), $t->card()->id(), ['reveal' => true]);