MArcomage

Free multiplayer on-line fantasy card game

Please log in


16 12 U
Emissary of the afterlife
Emissary of the afterlife

Undead

Attack: 14
Tower: +16
Gain N random resources
N = #Undead in your graveyard

Id
330
Name
Emissary of the afterlife
Rarity
Uncommon
Keywords
Cost (B / G / R)
16 / 0 / 12
Modes
0
Level
10
Created
25. Nov, 2007
Modified
26. Sep, 2015
Played
402 / 1937
Discarded
273 / 3001
Drawn
921 / 7833

BB code

Effect

Attack: 14
Tower: +16
Gain N random resources
N = #Undead in your graveyard

Code

    $t->hisData()->attack(14);
    $t->myData()->addTower(16);
    $dis_cards = array();
    if (count((array) $t->myDiscardedCards()[0]) > 0) {
      $dis_cards = array_merge($t->myDiscardedCards()[0], $dis_cards);
    }
    if (count((array) $t->hisData()->DisCards[1]) > 0) {
      $dis_cards = array_merge($t->hisData()->DisCards[1], $dis_cards);
    }
    $undead = 0;
    for ($i = 0; $i < count($dis_cards); $i++) {
      if ($t->getCard($dis_cards[$i])->hasKeyword('Undead')) {
        $undead++;
      }
    }
    if ($undead > 0) {
      $t->myData()->addRandomResources($undead);
    }