MArcomage

Free multiplayer on-line fantasy card game

Please log in


17 U
Crypt
Crypt

Summons non-common Undead
If Undead tokens > 50
Gain cost of the summoned card (max 10)

Id
203
Name
Crypt
Rarity
Uncommon
Keywords
Cost (B / G / R)
17 / 0 / 0
Modes
0
Level
10
Created
1. May, 2006
Modified
8. Sep, 2012
Played
1211 / 10351
Discarded
151 / 1193
Drawn
1702 / 13922

BB code

Effect

Summons non-common Undead
If Undead tokens > 50
Gain cost of the summoned card (max 10)

Code

    $uncommon = $t->getList(['rarity'=>'Uncommon', 'keyword'=>'Undead']);
    $rare = $t->getList(['rarity'=>'Rare', 'keyword'=>'Undead']);
    $t->nextCard($t->drawCard(array_merge($uncommon, $rare), $t->myData()->Hand, $t->cardPos(), 'drawCardList'));
    if ($t->myData()->getToken('Undead') > 50) {
      $cur_card = $t->getCard($t->nextCard());
      $t->myData()
        ->addBricks(min($cur_card->getResources('Bricks'), 10))
        ->addGems(min($cur_card->getResources('Gems'), 10))
        ->addRecruits(min($cur_card->getResources('Recruits'), 10));
    }