MArcomage

Free multiplayer on-line fantasy card game

Please log in


14 U
Bounty hunter
Bounty hunter

Barbarian Banish

Attack: 13
Discard a Legend from opponent's hand to gain
Enemy magic: -1

Id
408
Name
Bounty hunter
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 0 / 14
Modes
0
Level
9
Created
24. Dec, 2008
Modified
1. Nov, 2010
Played
658 / 5489
Discarded
276 / 2803
Drawn
1317 / 11941

BB code

Effect

Attack: 13
Discard a Legend from opponent's hand to gain
Enemy magic: -1

Code

    $t->hisData()->attack(13);
    $storage = array();
    for ($i = 1; $i <= $t->handSize(); $i++) {
      if ($t->getCard($t->hisData()->Hand[$i])->hasKeyword('Legend')) {
        $storage[] = $i;
      }
    }
    if (count($storage) > 0) {
      $discarded_pos = $storage[$t->arrayRand($storage)];
      $t->setCard('his', $discarded_pos, $t->drawCard($t->hisDeck(), $t->hisData()->Hand, $discarded_pos, 'drawCardDifferent'));
      $t->hisData()->addMagic(-1);
    }