magarena/release/Magarena/scripts/Wild_Nacatl.groovy

20 lines
767 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
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> targets1 =
game.filterPermanents(permanent.getController(),MagicTargetFilter.TARGET_MOUNTAIN_YOU_CONTROL);
if (targets1.size() > 0) {
pt.add(1,1);
}
2013-06-23 18:29:26 -07:00
2013-04-12 19:58:51 -07:00
final Collection<MagicPermanent> targets2 =
game.filterPermanents(permanent.getController(),MagicTargetFilter.TARGET_PLAINS_YOU_CONTROL);
if (targets2.size() > 0) {
pt.add(1,1);
2013-06-23 18:29:26 -07:00
}
2013-04-12 19:58:51 -07:00
}
}
]