magarena/release/Magarena/scripts/Court_Homunculus.groovy

12 lines
450 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_ARTIFACT, source);
if (source.getController().controlsPermanent(filter)) {
pt.add(1,1);
}
}
}
]