MArcomage

Free multiplayer on-line fantasy card game

Please log in


12 U
Ice queen
Ice queen

Cursed

Discard all Mage cards
Players gain 4 gems, 4 tower and 8 wall for each card they discarded

Id
425
Name
Ice queen
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 12 / 0
Modes
0
Level
10
Created
11. Apr, 2009
Modified
17. Dec, 2016
Played
3501 / 15730
Discarded
589 / 3444
Drawn
4382 / 22552

BB code

Effect

Discard all Mage cards
Players gain 4 gems, 4 tower and 8 wall for each card they discarded

Code

    $my_counter = $his_counter = 0;
    for ($i = 1; $i <= $t->handSize(); $i++) {
      if ($t->getCard($t->myData()->Hand[$i])->hasKeyword('Mage') && $i != $t->cardPos()) {
        $t->setCard('my', $i, $t->drawCard($t->myDeck(), $t->myData()->Hand, $i, 'drawCardRandom'));
        $my_counter++;
      }
      if ($t->getCard($t->hisData()->Hand[$i])->hasKeyword('Mage')) {
        $t->setCard('his', $i, $t->drawCard($t->hisDeck(), $t->hisData()->Hand, $i, 'drawCardRandom'));
        $his_counter++;
      }
    }
    $t->myData()->addTower($my_counter * 4)->addWall($my_counter * 8)->addGems($my_counter * 4);
    $t->hisData()->addTower($his_counter * 4)->addWall($his_counter * 8)->addGems($his_counter * 4);