MArcomage

Free multiplayer on-line fantasy card game

Please log in


13 R
Army of darkness
Army of darkness

Undead

Attack: N * M
Recruits: = 0
N = #Recruits
M = #Undead rare cards in hand / 2

Id
178
Name
Army of darkness
Rarity
Rare
Keywords
Cost (B / G / R)
0 / 13 / 0
Modes
0
Level
8
Created
1. May, 2006
Modified
24. Dec, 2010
Played
179 / 1640
Discarded
155 / 1400
Drawn
641 / 5451

BB code

Effect

Attack: N * M
Recruits: = 0
N = #Recruits
M = #Undead rare cards in hand / 2

Code

    $rares = 0;
    for ($i = 1; $i <= $t->handSize(); $i++) {
      $cur_card = $t->getCard($t->myData()->Hand[$i]);
      if ($cur_card->hasKeyword('Undead') && $cur_card->getRarity() == 'Rare') {
        $rares++;
      }
    }
    $t->hisData()->attack($t->myData()->Recruits * round($rares / 2));
    $t->myData()->setRecruits(0);