Trickster
Opponent's tokens are destroyed
Gain 1 random resource for each 10 destroyed tokens of the same kind
Cost (B / G / R)
0 / 3 / 3
BB code
Effect
Opponent's tokens are destroyed
Gain 1 random resource for each 10 destroyed tokens of the same kind
Code
$tmp = 0;
foreach ($t->hisData()->TokenValues as $i => $value) {
if ($value > 0) {
$tmp+= floor($value / 10); $t->hisData()->TokenValues[$i] = 0;
}
}
$t->myData()->addRandomResources($tmp);