magarena/release/Magarena/scripts/Homicidal_Seclusion.groovy

29 lines
925 B
Groovy
Raw Normal View History

2013-05-17 21:36:57 -07:00
[
new MagicStatic(
2013-06-23 18:29:26 -07:00
MagicLayer.ModPT,
2013-04-12 19:32:25 -07:00
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL) {
@Override
public void modPowerToughness(
final MagicPermanent source,
final MagicPermanent permanent,
final MagicPowerToughness pt) {
if (permanent.getController().getNrOfPermanents(MagicType.Creature) == 1) {
2013-04-12 19:32:25 -07:00
pt.add(3,1);
}
}
2013-05-17 21:36:57 -07:00
},
new MagicStatic(
2013-06-23 18:29:26 -07:00
MagicLayer.Ability,
2013-04-12 19:32:25 -07:00
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL) {
@Override
public void modAbilityFlags(
final MagicPermanent source,
final MagicPermanent permanent,
final Set<MagicAbility> flags) {
if (permanent.getController().getNrOfPermanents(MagicType.Creature) == 1) {
2013-05-21 05:26:01 -07:00
flags.add(MagicAbility.Lifelink);
2013-04-12 19:32:25 -07:00
}
}
2013-05-17 21:36:57 -07:00
}
]