magarena/release/Magarena/scripts/Drogskol_Captain.groovy

27 lines
965 B
Groovy
Raw Normal View History

2013-05-17 23:03:26 -07:00
[
new MagicStatic(
MagicLayer.ModPT,
MagicTargetFilter.TARGET_SPIRIT_YOU_CONTROL) {
2013-04-12 19:32:25 -07:00
@Override
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
pt.add(1,1);
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target;
}
2013-05-17 23:03:26 -07:00
},
new MagicStatic(
MagicLayer.Ability,
MagicTargetFilter.TARGET_SPIRIT_YOU_CONTROL) {
2013-04-12 19:32:25 -07:00
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Hexproof);
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target;
}
2013-05-17 23:03:26 -07:00
}
]