MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 C
Will o' wisp
Will o' wisp

Undead Aria

Attack: N
N = #non-common cards in opponent's hand

Id
257
Name
Will o' wisp
Rarity
Common
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
0
Level
3
Created
19. Aug, 2007
Modified
27. Jul, 2013
Played
1432 / 15857
Discarded
1046 / 6768
Drawn
3116 / 33062

BB code

Effect

Attack: N
N = #non-common cards in opponent's hand

Code

    $noncommon =  0;
    for ($i = 1; $i <= $t->handSize(); $i++) {
      if ($t->getCard($t->hisData()->Hand[$i])->getRarity() != 'Common') {
        $noncommon++;
      }
    }
    $t->hisData()->attack($noncommon);