magarena/release/Magarena/scripts/Auriok_Sunchaser.groovy

19 lines
663 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicStatic(MagicLayer.Ability) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
if (MagicCondition.METALCRAFT_CONDITION.accept(permanent)) {
flags.add(MagicAbility.Flying);
}
}
},
new MagicStatic(MagicLayer.ModPT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
if (MagicCondition.METALCRAFT_CONDITION.accept(permanent)) {
pt.add(2,2);
}
}
}
]