magarena/release/Magarena/scripts/Guul_Draz_Vampire.groovy

19 lines
639 B
Groovy

[
new MagicStatic(MagicLayer.ModPT) {
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
if (permanent.getOpponent().getLife() <= 10) {
pt.add(2,1);
}
}
},
new MagicStatic(MagicLayer.Ability) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
if (permanent.getOpponent().getLife() <= 10) {
flags.add(MagicAbility.Intimidate);
}
}
}
]