magarena/release/Magarena/scripts/Relentless_Rats.groovy

12 lines
537 B
Groovy
Raw Normal View History

2013-03-13 06:00:05 -07:00
[
new MagicStatic(MagicLayer.ModPT) {
2012-06-17 05:19:08 -07:00
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
final MagicGame game = source.getGame();
final MagicTargetFilter<MagicPermanent> targetFilter = new MagicTargetFilter.NameTargetFilter(permanent.getName());
final int size = game.filterPermanents(game.getPlayer(0),targetFilter).size() - 1;
pt.add(size,size);
2012-06-17 05:19:08 -07:00
}
2013-03-13 06:00:05 -07:00
}
]