Moon shrine
Players gain 1 stock for each zero cost card and lose 1 stock for each non zero cost card in their hand
Cost (B / G / R)
0 / 1 / 0
BB code
Effect
Players gain 1 stock for each zero cost card and lose 1 stock for each non zero cost card in their hand
Code
$my_gain = $his_gain = 0;
for ($i = 1; $i <= $t->handSize(); $i++) {
if ($i != $t->cardPos()) {
if ($t->getCard($t->myData()->Hand[$i])->getResources() == 0) {
$my_gain++;
}
else {
$my_gain--;
}
}
if ($t->getCard($t->hisData()->Hand[$i])->getResources() == 0) {
$his_gain++;
}
else {
$his_gain--;
}
}
$t->myData()->addStock($my_gain);
$t->hisData()->addStock($his_gain);