MArcomage

Free multiplayer on-line fantasy card game

Please log in


25 R
Troll commander
Troll commander

Horde

Attack: 20
Recruits: +15
Replace common Horde in hand with uncommon Horde

Id
749
Name
Troll commander
Rarity
Rare
Keywords
Cost (B / G / R)
0 / 0 / 25
Modes
0
Level
10
Created
1. Aug, 2015
Modified
1. Aug, 2015
Played
111 / 234
Discarded
28 / 46
Drawn
190 / 374

BB code

Effect

Attack: 20
Recruits: +15
Replace common Horde in hand with uncommon Horde

Code

    $t->hisData()->attack(20);
    $t->myData()->addRecruits(15);
    for ($i = 1; $i <= $t->handSize(); $i++) {
      $cur_card = $t->getCard($t->myData()->Hand[$i]);
      if ($i != $t->cardPos() && $cur_card->getRarity() == 'Common' && $cur_card->hasKeyword('Horde')) {
        $t->setCard('my', $i, $t->drawCard($t->getList(['rarity'=>'Uncommon', 'keyword'=>'Horde']), $t->myData()->Hand, $i, 'drawCardList'));
      }
    }