magarena/release/Magarena/scripts/Nightmare.groovy

10 lines
317 B
Groovy

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