MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 U
Conscript army
Conscript army

Attack: 12
Stock: -5
Replace matching card and up to two common cards in opponent's hand with Conscript

Id
150
Name
Conscript army
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
0
Level
2
Created
1. May, 2006
Modified
26. Sep, 2015
Played
1243 / 30650
Discarded
162 / 3873
Drawn
1702 / 39915

BB code

Effect

Attack: 12
Stock: -5
Replace matching card and up to two common cards in opponent's hand with Conscript

Code

    $t->hisData()->attack(12);
    $t->myData()->addStock(-5);
    $t->setCard('his', $t->cardPos(), 97, ['reveal' => true]);
    $storage = array();
    for ($i = 1; $i <= $t->handSize(); $i++) {
      if ($i != $t->cardPos() && $t->getCard($t->hisData()->Hand[$i])->getRarity() == 'Common') {
        $storage[] = $i;
      }
    }
    $count = min(count($storage), 2);
    if ($count > 0) {
      shuffle($storage);
      for ($k = 0; $k < $count; $k++) {
        $i = $storage[$k];
        $t->setCard('his', $i, 97, ['reveal' => true]);
      }
    }