Emissary of the afterlife
Attack: 14
Tower: +16
Gain N random resources
N = #Undead in your graveyard
Name
Emissary of the afterlife
Cost (B / G / R)
16 / 0 / 12
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);
}