MArcomage

Free multiplayer on-line fantasy card game

Please log in


9 U
Dream shift
Dream shift

Illusion

Replace your hand with cards from your deck of the same rarity as replaced cards

Id
569
Name
Dream shift
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 9 / 0
Modes
0
Level
10
Created
21. Jun, 2010
Modified
1. Nov, 2010
Played
324 / 9583
Discarded
192 / 4054
Drawn
692 / 17167

BB code

Effect

Replace your hand with cards from your deck of the same rarity as replaced cards

Code

    for ($i = 1; $i <= $t->handSize(); $i++) {
      if ($i != $t->cardPos()) {
        $rarity = $t->getCard($t->myData()->Hand[$i])->getRarity();
        $list = array_diff($t->myDeck()->$rarity, [569, $t->myData()->Hand[$i]]);
        $t->setCard('my', $i, $t->drawCard($list, $t->myData()->Hand, $i, 'drawCardList'));
      }
    }