magarena/release/Magarena/scripts/Serra_Ascendant.groovy

19 lines
639 B
Groovy

[
new MagicStatic(MagicLayer.ModPT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
if (permanent.getController().getLife() >= 30) {
pt.add(5,5);
}
}
},
new MagicStatic(MagicLayer.Ability) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
if (permanent.getController().getLife() >= 30) {
flags.add(MagicAbility.Flying);
}
}
}
]