magarena/release/Magarena/scripts/Thran_Golem.groovy

21 lines
729 B
Groovy
Raw Normal View History

2013-03-13 22:27:12 -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.isEnchanted()) {
pt.add(2,2);
}
}
2013-03-13 22:27:12 -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.isEnchanted()) {
flags.add(MagicAbility.Flying);
flags.add(MagicAbility.FirstStrike);
flags.add(MagicAbility.Trample);
}
2012-06-17 05:19:08 -07:00
}
2013-03-13 22:27:12 -07:00
}
]