magarena/release/Magarena/scripts/Squirrel_Mob.groovy

16 lines
517 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 int size = game.filterPermanents(
permanent.getController(),
MagicTargetFilter.TARGET_SQUIRREL_CREATURE).size() - 1;
pt.add(size,size);
}
}
]