magarena/release/Magarena/scripts/Transcendent_Master.groovy

29 lines
976 B
Groovy
Raw Normal View History

2013-05-17 21:34:53 -07:00
[
new MagicStatic(MagicLayer.SetPT) {
2013-04-12 19:32:25 -07:00
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
final int charges = permanent.getCounters(MagicCounterType.Charge);
if (charges >= 12) {
pt.set(9,9);
} else if (charges >= 6) {
pt.set(6,6);
}
}
2013-05-17 21:34:53 -07:00
},
new MagicStatic(MagicLayer.Ability) {
2013-04-12 19:32:25 -07:00
@Override
public void modAbilityFlags(
final MagicPermanent source,
final MagicPermanent permanent,
final Set<MagicAbility> flags) {
final int charges = permanent.getCounters(MagicCounterType.Charge);
if (charges >= 12) {
flags.add(MagicAbility.Indestructible);
}
if (charges >= 6) {
flags.add(MagicAbility.LifeLink);
}
}
2013-05-17 21:34:53 -07:00
}
]