magarena/release/Magarena/scripts/Yavimaya_Enchantress.groovy

11 lines
414 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 int size = game.filterPermanents(permanent.getController(),MagicTargetFilter.TARGET_ENCHANTMENT).size();
pt.add(size,size);
}
}
]