magarena/release/Magarena/scripts/Cantivore.groovy

15 lines
424 B
Groovy

[
new MagicCDA() {
@Override
public void modPowerToughness(
final MagicGame game,
final MagicPlayer player,
final MagicPowerToughness pt) {
final int size = game.filterCards(
player,
MagicTargetFilter.TARGET_ENCHANTMENT_CARD_FROM_ALL_GRAVEYARDS).size();
pt.set(size, size);
}
}
]