MArcomage

Free multiplayer on-line fantasy card game

Please log in


5 C
Doppelganger
Doppelganger

Illusion

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

Id
476
Name
Doppelganger
Rarity
Common
Keywords
Cost (B / G / R)
0 / 5 / 0
Modes
8
Level
10
Created
24. Oct, 2009
Modified
29. Oct, 2016
Played
181 / 5899
Discarded
295 / 8517
Drawn
485 / 16116

BB code

Effect

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

Code

    if (!$t->isMyNew($t->cardPos()) && $t->mode() == $t->cardPos()) {
      $t->nextCard($t->hisData()->Hand[$t->cardPos()], true);
    }
    else {
      if ($t->mode() == $t->cardPos()) {
        $t->noNextCard();
      }
      else {
        $t->replaceCard('my', $t->mode(), $t->card()->id());
      }
    }