magarena/release/Magarena/scripts/Angelic_Overseer.groovy

15 lines
548 B
Groovy
Raw Normal View History

2013-03-13 05:59:08 -07:00
[
new MagicStatic(MagicLayer.Ability) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
2012-06-17 05:19:08 -07:00
for (final MagicPermanent target : permanent.getController().getPermanents()) {
if (target.hasSubType(MagicSubType.Human)) {
flags.add(MagicAbility.Hexproof);
flags.add(MagicAbility.Indestructible);
break;
2012-06-17 05:19:08 -07:00
}
}
}
2013-03-13 05:59:08 -07:00
}
]