MArcomage

Free multiplayer on-line fantasy card game

Please log in


1 C
Purifying fire
Purifying fire

Burning

Players discard all non-rare cards not from their deck (can't draw rare cards)

Id
608
Name
Purifying fire
Rarity
Common
Keywords
Cost (B / G / R)
0 / 1 / 0
Modes
0
Level
10
Created
3. Oct, 2010
Modified
24. Dec, 2014
Played
93 / 10365
Discarded
156 / 15886
Drawn
323 / 38864

BB code

Effect

Players discard all non-rare cards not from their deck (can't draw rare cards)

Code

    $my_cards = array_merge($t->myDeck()->Common, $t->myDeck()->Uncommon);
    for ($i = 1; $i <= $t->handSize(); $i++) {
      $cur_card = $t->myData()->Hand[$i];
      if ($t->getCard($cur_card)->getRarity() != 'Rare' && !in_array($cur_card, $my_cards) && $i != $t->cardPos()) {
        $t->setCard('my', $i, $t->drawCard($t->myDeck(), $t->myData()->Hand, $i, 'drawCardNoRare'));
      }
    }
    $his_cards = array_merge($t->hisDeck()->Common, $t->hisDeck()->Uncommon);
    for ($i = 1; $i <= $t->handSize(); $i++) {
      $cur_card = $t->hisData()->Hand[$i];
      if ($t->getCard($cur_card)->getRarity() != 'Rare' && !in_array($cur_card, $his_cards)) {
        $t->setCard('his', $i, $t->drawCard($t->hisDeck(), $t->hisData()->Hand, $i, 'drawCardNoRare'));
      }
    }