MArcomage

Free multiplayer on-line fantasy card game

Please log in


16 12 U
Sphinx
Sphinx

Unliving

Discard a card from opponent's hand
If #Unliving in hand > 3
Gain half cost of the discarded card (max 20)

Id
373
Name
Sphinx
Rarity
Uncommon
Keywords
Cost (B / G / R)
16 / 12 / 0
Modes
8
Level
10
Created
30. Jul, 2008
Modified
30. Jul, 2008
Played
790 / 5145
Discarded
373 / 3124
Drawn
1650 / 12032

BB code

Effect

Discard a card from opponent's hand
If #Unliving in hand > 3
Gain half cost of the discarded card (max 20)

Code

    if ($t->keywordCount($t->myData()->Hand, 'Unliving') > 3) {
      $hisCard = $t->getCard($t->hisData()->Hand[$t->mode()]);
      $t->myData()
        ->addBricks(min(round($hisCard->getResources('Bricks') / 2) , 20))
        ->addGems(min(round($hisCard->getResources('Gems') / 2) , 20))
        ->addRecruits(min(round($hisCard->getResources('Recruits') / 2) , 20));
    }
    $t->setCard('his', $t->mode(), $t->drawCard($t->hisDeck(), $t->hisData()->Hand, $t->mode(), 'drawCardDifferent'));