magarena/release/Magarena/scripts/Cloudreach_Cavalry.groovy

20 lines
676 B
Groovy
Raw Normal View History

2013-06-02 22:10:51 -07:00
[
new MagicStatic(MagicLayer.ModPT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
2013-06-04 00:58:42 -07:00
if (source.getController().controlsPermanent(MagicSubType.Bird)) {
2013-06-02 22:10:51 -07:00
pt.add(2,2);
}
}
},
new MagicStatic(MagicLayer.Ability) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
2013-06-04 00:58:42 -07:00
if (source.getController().controlsPermanent(MagicSubType.Bird)) {
2013-06-02 22:10:51 -07:00
flags.add(MagicAbility.Flying);
}
}
}
]