MArcomage

Free multiplayer on-line fantasy card game

Please log in


15 U
Fairy dragon
Fairy dragon

Dragon Quick

Moves all Dragon cards from opponent's hand to your hand (to matching positions)
If there are none
Stock: +6

Id
195
Name
Fairy dragon
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 15 / 0
Modes
0
Level
5
Created
1. May, 2006
Modified
26. Sep, 2015
Played
429 / 9648
Discarded
93 / 2459
Drawn
629 / 18020

BB code

Effect

Moves all Dragon cards from opponent's hand to your hand (to matching positions)
If there are none
Stock: +6

Code

    if ($t->keywordCount($t->hisData()->Hand, 'Dragon') == 0) {
      $t->myData()->addStock(6);
    }
    else {
      for ($i = 1; $i <= $t->handSize(); $i++) {
        if ($t->getCard($t->hisData()->Hand[$i])->hasKeyword('Dragon')) {
          $t->setCard('my', $i, $t->hisData()->Hand[$i], ['reveal' => true]);
          $t->setCard('his', $i, $t->drawCard($t->hisDeck(), $t->hisData()->Hand, $i, 'drawCardDifferent'));
          if ($t->cardPos() == $i) {
            $t->noNextCard();
          }
        }
      }
    }