magarena/release/Magarena/scripts/Ballynock_Cohort.groovy

12 lines
456 B
Groovy

[
new MagicStatic(MagicLayer.ModPT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
final MagicPermanentFilterImpl filter = new MagicOtherPermanentTargetFilter(MagicTargetFilter.TARGET_WHITE_CREATURE, source);
if (source.getController().controlsPermanent(filter)) {
pt.add(1,1);
}
}
}
]