magarena/release/Magarena/scripts/Ikiral_Outrider.groovy

28 lines
901 B
Groovy

[
new MagicStatic(MagicLayer.SetPT) {
@Override
public void modPowerToughness(
final MagicPermanent source,
final MagicPermanent permanent,
final MagicPowerToughness pt) {
final int charges = permanent.getCounters(MagicCounterType.Charge);
if (charges >= 4) {
pt.set(3,10);
} else if (charges >= 1) {
pt.set(2,6);
}
}
},
new MagicStatic(MagicLayer.Ability) {
@Override
public void modAbilityFlags(
final MagicPermanent source,
final MagicPermanent permanent,
final Set<MagicAbility> flags) {
if (permanent.getCounters(MagicCounterType.Charge) >= 1) {
flags.add(MagicAbility.Vigilance);
}
}
}
]