magarena/release/Magarena/scripts/Nirkana_Cutthroat.groovy

29 lines
952 B
Groovy
Raw Normal View History

2013-04-01 06:52:24 -07:00
[
new MagicStatic(MagicLayer.SetPT) {
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
final int charges=permanent.getCounters(MagicCounterType.Charge);
if (charges>=3) {
pt.set(5,4);
} else if (charges>=1) {
pt.set(4,3);
}
}
2013-04-01 06:52:24 -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) {
2012-06-17 05:19:08 -07:00
final int charges=permanent.getCounters(MagicCounterType.Charge);
if (charges>=3) {
flags.add(MagicAbility.FirstStrike);
}
if (charges>=1) {
flags.add(MagicAbility.Deathtouch);
}
2012-06-17 05:19:08 -07:00
}
2013-04-01 06:52:24 -07:00
}
]