MArcomage

Free multiplayer on-line fantasy card game

Please log in

Keywords > Rebirth

Icon

Rebirth

Effect

If #Burning + #Demonic + #Legend + #Mage in hand is greater than 3, the card stays in hand and half of the gems cost of the played card will be returned.

Lore

Ancient creatures are often very difficult to defeat, but most feared are those who will not die on defeat, they will just be reborn and will continue the fight once again. However, they are not immortal. To be successfully reborn they need to draw power from their environment. Once they have depleted all the reserves they will meet their final death.

Code

    $count = $this->keywordCount($t->myData()->Hand, 'Burning') + $this->keywordCount($t->myData()->Hand, 'Demonic') + $this->keywordCount($t->myData()->Hand, 'Legend') + $this->keywordCount($t->myData()->Hand, 'Mage');
    if ($count > 3) {
      $t->noNextCard();
      $this->revealCard('my', $t->cardPos());
      $t->myData()->addGems(round($t->card()->getResources('Gems') / 2));
    }