MArcomage

Free multiplayer on-line fantasy card game

Please log in


6 C
Dragon bard
Dragon bard

Replace selected Dragon in hand with a Dragon of the same rarity or replace selected Dragon egg in hand with a Dragon

Id
707
Name
Dragon bard
Rarity
Common
Keywords
Cost (B / G / R)
0 / 0 / 6
Modes
8
Level
10
Created
27. Jul, 2013
Modified
27. Jul, 2013
Played
149 / 1254
Discarded
145 / 839
Drawn
408 / 2847

BB code

Effect

Replace selected Dragon in hand with a Dragon of the same rarity or replace selected Dragon egg in hand with a Dragon

Code

    if ($t->mode() != $t->cardPos()) {
      $cur_card = $t->getCard($t->myData()->Hand[$t->mode()]);
      if ($cur_card->id() == 131) {
        $t->setCard('my', $t->mode(), $t->drawCard($t->getList(['keyword'=>'Dragon']), $t->myData()->Hand, $t->mode(), 'drawCardList'));
      }
      elseif ($cur_card->hasKeyword('Dragon')) {
        $list = array_diff($t->getList(['rarity'=>$cur_card->getRarity(), 'keyword'=>'Dragon']), [$cur_card->id()]);
        $t->setCard('my', $t->mode(), $t->drawCard($list, $t->myData()->Hand, $t->mode(), 'drawCardList'));
      }
    }