MArcomage

Free multiplayer on-line fantasy card game

Please log in


5 U
Veteran militia
Veteran militia

Quick

Replace a card in hand with a card from your deck of the same rarity (can't summon self)

Id
513
Name
Veteran militia
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 0 / 5
Modes
8
Level
5
Created
14. Mar, 2010
Modified
24. Dec, 2014
Played
5857 / 36950
Discarded
1455 / 8989
Drawn
10134 / 55709

BB code

Effect

Replace a card in hand with a card from your deck of the same rarity (can't summon self)

Code

    $rarity = $t->getCard($t->myData()->Hand[$t->mode()])->getRarity();
    $list = array_diff($t->myDeck()->$rarity, [$t->card()->id(), $t->myData()->Hand[$t->mode()]]);
    $t->setCard('my', $t->mode(), $t->drawCard($list, $t->myData()->Hand, $t->mode(), 'drawCardList'));
    if ($t->mode() == $t->cardPos()) {
      $t->noNextCard();
    }