MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 U
Cursed amulet
Cursed amulet

Cursed

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)

Id
288
Name
Cursed amulet
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
8
Level
10
Created
1. May, 2006
Modified
17. Dec, 2016
Played
689 / 8169
Discarded
413 / 4287
Drawn
457 / 6834

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]);