magarena/release/Magarena/scripts/Kird_Ape.groovy

14 lines
518 B
Groovy

[
new MagicStatic(MagicLayer.ModPT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
final MagicGame game = source.getGame();
final Collection<MagicPermanent> targets =
game.filterPermanents(permanent.getController(),MagicTargetFilter.TARGET_FOREST_YOU_CONTROL);
if (targets.size() > 0) {
pt.add(1,2);
}
}
}
]