MArcomage

Free multiplayer on-line fantasy card game

Please log in


4 C
Ambush
Ambush

If targeting self and not New, discard the matching card, else replace a card in hand with self

Id
480
Name
Ambush
Rarity
Common
Keywords
Cost (B / G / R)
0 / 0 / 4
Modes
8
Level
10
Created
24. Oct, 2009
Modified
24. Dec, 2011
Played
1278 / 11005
Discarded
2410 / 12174
Drawn
4128 / 24606

BB code

Effect

If targeting self and not New, discard the matching card, else replace a card in hand with self

Code

    if (!$t->isMyNew($t->cardPos()) && $t->mode() == $t->cardPos()) {
      $t->setCard('his', $t->cardPos(), $t->drawCard($t->hisDeck(), $t->hisData()->Hand, $t->cardPos(), 'drawCardDifferent'));
    }
    else {
      if ($t->mode() == $t->cardPos()) {
        $t->noNextCard();
      }
      else {
        $t->replaceCard('my', $t->mode(), $t->card()->id());
      }
    }