Moon castle
Players gain 1 stock for each non-keyword card and lose 1 stock for each different keyword in their hand
Cost (B / G / R)
0 / 1 / 0
BB code
Effect
Players gain 1 stock for each non-keyword card and lose 1 stock for each different keyword in their hand
Code
$mine = $his = 0;
for ($i = 1; $i <= $t->handSize(); $i++) {
if (!$t->getCard($t->myData()->Hand[$i])->hasKeyword('any')) {
$mine++;
}
if (!$t->getCard($t->hisData()->Hand[$i])->hasKeyword('any')) {
$his++;
}
}
$my_gain = $mine - $t->countDistinctKeywords($t->myData()->Hand);
$his_gain = $his - $t->countDistinctKeywords($t->hisData()->Hand);
$t->myData()->addStock($my_gain);
$t->hisData()->addStock($his_gain);