magarena/release/Magarena/scripts/Boggart_Sprite_Chaser.groovy

20 lines
680 B
Groovy

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