magarena/release/Magarena/scripts/Village_Survivors.groovy

13 lines
405 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicStatic(
2013-06-23 18:29:26 -07:00
MagicLayer.Ability,
2013-04-12 19:58:51 -07:00
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
if (permanent.getController().getLife() <= 5) {
flags.add(MagicAbility.Vigilance);
}
}
}
]