MArcomage

Free multiplayer on-line fantasy card game

Please log in


11 11 U
Flaming mirage
Flaming mirage

Burning

Attack: 21
If last card was Burning up to 2 copies of that card will replace non-rare non-Burning cards in hand

Id
335
Name
Flaming mirage
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 11 / 11
Modes
0
Level
10
Created
25. Nov, 2007
Modified
26. Sep, 2015
Played
398 / 4809
Discarded
138 / 1444
Drawn
739 / 9001

BB code

Effect

Attack: 21
If last card was Burning up to 2 copies of that card will replace non-rare non-Burning cards in hand

Code

    $t->hisData()->attack(21);
    if ($t->myLastCard()->hasKeyword('Burning')) {
      $storage = array();
      for ($i = 1; $i <= $t->handSize(); $i++) {
        $cur_card = $t->getCard($t->myData()->Hand[$i]);
        if (!$cur_card->hasKeyword('Burning') && $cur_card->getRarity() != 'Rare') {
          $storage[] = $i;
        }
      }
      $count = min(count($storage), 2);
      if ($count > 0) {
        shuffle($storage);
        for ($k = 0; $k < $count; $k++) {
          $i = $storage[$k];
          $t->setCard('my', $i, $t->myData()->LastCard[$t->myLastCardIndex()], ['reveal' => true]);
        }
      }
    }