MArcomage

Free multiplayer on-line fantasy card game

Please log in


3 C
Chaos dwarf
Chaos dwarf

Runic

Replace a card in hand with self
Raises wall based on replaced card rarity (C-2, U-6, R-14)

Id
584
Name
Chaos dwarf
Rarity
Common
Keywords
Cost (B / G / R)
0 / 0 / 3
Modes
8
Level
10
Created
10. Sep, 2010
Modified
7. Apr, 2012
Played
328 / 25024
Discarded
292 / 13129
Drawn
480 / 22275

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());
    }