MArcomage

Free multiplayer on-line fantasy card game

Please log in

Keywords > Dragon

Icon

Dragon

Effect

Ancient legacy - if there is another Dragon in hand, summons Dragon egg (if there is no Dragon egg card in hand) or Gems production x2 (if there already is a Dragon egg card in hand).

Lore

Dragons are one of the oldest known races. Rare and powerful, they are often hunted down by individuals who seek fame and glory. Most of such adventurers find something else entirely and are never heard of ever again.

Code

    if ($this->keywordCount($t->myData()->Hand, 'Dragon') > 1) {
      $tmp = 0;
      for ($i = 1; $i <= $t->handSize(); $i++) {
        if ($t->myData()->Hand[$i] == 131) {
          $tmp++;
        }
      }

      if ($tmp > 0) {
        $t->production()->multiplyGems(2); // when there already is a dragon egg in hand add gems production
      }
      else {
        $t->nextCard(131, true); // add dragon egg otherwise
      }
    }