MArcomage

Free multiplayer on-line fantasy card game

Please log in


10 R
Witcher
Witcher

Players discard all keyword cards
Players suffer 7 damage for each card they discarded

Id
355
Name
Witcher
Rarity
Rare
Keywords
Cost (B / G / R)
0 / 0 / 10
Modes
0
Level
10
Created
12. Feb, 2008
Modified
12. Feb, 2008
Played
105 / 1098
Discarded
15 / 443
Drawn
170 / 1967

BB code

Effect

Players discard all keyword cards
Players suffer 7 damage for each card they discarded

Code

    $j = 0;
    for ($i = 1; $i <= $t->handSize(); $i++) {
      if ($t->getCard($t->myData()->Hand[$i])->hasKeyword('any') && $i != $t->cardPos()) {
        $t->setCard('my', $i, $t->drawCard($t->myDeck(), $t->myData()->Hand, $i, 'drawCardRandom'));
        $j++;
      }
    }
    $t->myData()->attack($j * 7);
    $j = 0;
    for ($i = 1; $i <= $t->handSize(); $i++) {
      if ($t->getCard($t->hisData()->Hand[$i])->hasKeyword('any')) {
        $t->setCard('his', $i, $t->drawCard($t->hisDeck(), $t->hisData()->Hand, $i, 'drawCardRandom'));
        $j++;
      }
    }
    $t->hisData()->attack($j * 7);