magarena/release/Magarena/scripts/Viridian_Betrayers.groovy

11 lines
339 B
Groovy

[
new MagicStatic(MagicLayer.Ability) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
if (permanent.getOpponent().getPoison() > 0) {
flags.add(MagicAbility.Infect);
}
}
}
]