MArcomage

Free multiplayer on-line fantasy card game

Please log in


23 U
Goblin regiment
Goblin regiment

Horde

Attack: 30
Replace all common cards in hand with Goblin flankers
Recruits: +2N
N = #replaced cards

Id
549
Name
Goblin regiment
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 0 / 23
Modes
0
Level
10
Created
21. Jun, 2010
Modified
26. Sep, 2015
Played
628 / 4824
Discarded
219 / 2246
Drawn
1104 / 9741

BB code

Effect

Attack: 30
Replace all common cards in hand with Goblin flankers
Recruits: +2N
N = #replaced cards

Code

    $t->hisData()->attack(30); $tmp = 0;
    for ($i = 1; $i <= $t->handSize(); $i++) {
      if ($i != $t->cardPos() && $t->getCard($t->myData()->Hand[$i])->getRarity() == 'Common') {
        $t->setCard('my', $i, 13, ['reveal' => true]); $tmp++;
      }
    }
    $t->myData()->addRecruits($tmp * 2);