MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 R
Spirit of Air
Spirit of Air

Quick Aria

Replace adjacent cards with non-common Aria (can't summon self)

Id
674
Name
Spirit of Air
Rarity
Rare
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
0
Level
10
Created
24. Jun, 2012
Modified
17. Dec, 2016
Played
790 / 2216
Discarded
86 / 330
Drawn
1020 / 2853

BB code

Effect

Replace adjacent cards with non-common Aria (can't summon self)

Code

    $uncommon = $t->getList(['rarity'=>'Uncommon', 'keyword'=>'Aria']);
    $rare = $t->getList(['rarity'=>'Rare', 'keyword'=>'Aria']);
    $aria = array_merge($uncommon, $rare);
    $aria = array_diff($aria, [$t->card()->id()]);
    if ($t->cardPos() > 1) {
      $t->setCard('my', $t->cardPos() - 1, $t->drawCard($aria, $t->myData()->Hand, $t->cardPos() - 1, 'drawCardList'));
    }
    if ($t->cardPos() < $t->handSize()) {
      $t->setCard('my', $t->cardPos() + 1, $t->drawCard($aria, $t->myData()->Hand, $t->cardPos() + 1, 'drawCardList'));
    }