magarena/release/Magarena/scripts/Kitesail_Apprentice.groovy

19 lines
601 B
Groovy
Raw Normal View History

2013-03-13 06:27:20 -07:00
[
new MagicStatic(MagicLayer.ModPT) {
2012-06-17 05:19:08 -07:00
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
2012-06-17 05:19:08 -07:00
if (permanent.isEquipped()) {
pt.add(1,1);
}
2013-06-23 18:29:26 -07:00
}
2013-03-13 06:27:20 -07:00
},
new MagicStatic(MagicLayer.Ability) {
2012-06-17 05:19:08 -07:00
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
if (permanent.isEquipped()) {
flags.add(MagicAbility.Flying);
}
2012-06-17 05:19:08 -07:00
}
2013-03-13 06:27:20 -07:00
}
]