MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 C
Black market
Black market

Production x0
Switches selected non-rare card with its matching non-rare card (can't target self)

Id
252
Name
Black market
Rarity
Common
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
8
Level
9
Created
8. May, 2007
Modified
26. Sep, 2015
Played
736 / 15793
Discarded
1781 / 17933
Drawn
2951 / 40101

BB code

Effect

Production x0
Switches selected non-rare card with its matching non-rare card (can't target self)

Code

    $t->production()->multiply(0);
    if ($t->mode() != $t->cardPos() && $t->getCard($t->myData()->Hand[$t->mode()])->getRarity() != 'Rare'
      && $t->getCard($t->hisData()->Hand[$t->mode()])->getRarity() != 'Rare') {
      $tmp = $t->myData()->Hand[$t->mode()];
      $t->setCard('my', $t->mode(), $t->hisData()->Hand[$t->mode()], ['reveal' => true]);
      $t->setCard('his', $t->mode(), $tmp, ['reveal' => true]);
    }