MArcomage

Free multiplayer on-line fantasy card game

Please log in


2 2 C
Petrify
Petrify

Tower: +3
Replace a non-Unliving card in hand with Unliving card of the same rarity

Id
626
Name
Petrify
Rarity
Common
Keywords
Cost (B / G / R)
2 / 2 / 0
Modes
8
Level
10
Created
24. Apr, 2011
Modified
24. Dec, 2011
Played
704 / 8087
Discarded
1632 / 5182
Drawn
2874 / 15654

BB code

Effect

Tower: +3
Replace a non-Unliving card in hand with Unliving card of the same rarity

Code

    $t->myData()->addTower(3);
    $selected = $t->getCard($t->myData()->Hand[$t->mode()]);
    if (!$selected->hasKeyword('Unliving')) {
      $t->setCard('my', $t->mode(), $t->drawCard($t->getList(['rarity'=>$selected->getRarity(), 'keyword'=>'Unliving']), $t->myData()->Hand, $t->mode(), 'drawCardList'));
    }