MArcomage

Free multiplayer on-line fantasy card game

Please log in


30 R
Barbz's hideout
Barbz's hideout

Quarry: +1 for each rare in hand
Tower: +5 for each uncommon in hand
Wall: +8 for each common in hand

Id
691
Name
Barbz's hideout
Rarity
Rare
Keywords
Cost (B / G / R)
30 / 0 / 0
Modes
0
Level
10
Created
1. Jan, 2013
Modified
1. Jan, 2013
Played
1304 / 4071
Discarded
103 / 381
Drawn
1636 / 5500

BB code

Effect

Quarry: +1 for each rare in hand
Tower: +5 for each uncommon in hand
Wall: +8 for each common in hand

Code

    for ($i = 1; $i <= $t->handSize(); $i++) {
      $cur_card = $t->getCard($t->myData()->Hand[$i]);
      if ($cur_card->getRarity() == 'Rare') {
        $t->myData()->addQuarry(1);
      }
      elseif ($cur_card->getRarity() == 'Uncommon') {
        $t->myData()->addTower(5);
      }
      elseif ($cur_card->getRarity() == 'Common') {
        $t->myData()->addWall(8);
      }
    }