MArcomage

Free multiplayer on-line fantasy card game

Please log in


30 R
Goblin emperor
Goblin emperor

Horde

Attack: 25
Replace adjacent cards with Horde
Replace a card in hand with self

Id
678
Name
Goblin emperor
Rarity
Rare
Keywords
Cost (B / G / R)
0 / 0 / 30
Modes
8
Level
8
Created
24. Jun, 2012
Modified
17. Dec, 2016
Played
131 / 706
Discarded
60 / 422
Drawn
157 / 983

BB code

Effect

Attack: 25
Replace adjacent cards with Horde
Replace a card in hand with self

Code

    $t->hisData()->attack(25);
    if ($t->cardPos() > 1) {
      $t->setCard('my', $t->cardPos() - 1, $t->drawCard($t->getList(['keyword'=>'Horde']), $t->myData()->Hand, $t->cardPos() - 1, 'drawCardList'));
    }
    if ($t->cardPos() < $t->handSize()) {
      $t->setCard('my', $t->cardPos() + 1, $t->drawCard($t->getList(['keyword'=>'Horde']), $t->myData()->Hand, $t->cardPos() + 1, 'drawCardList'));
    }
    if ($t->mode() == $t->cardPos()) {
      $t->noNextCard();
    }
    else {
      $t->replaceCard('my', $t->mode(), $t->card()->id());
    }