magarena/release/Magarena/scripts/Homicidal_Seclusion.groovy

29 lines
943 B
Groovy

[
new MagicStatic(
MagicLayer.ModPT,
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL) {
@Override
public void modPowerToughness(
final MagicPermanent source,
final MagicPermanent permanent,
final MagicPowerToughness pt) {
if (permanent.getController().getNrOfPermanentsWithType(MagicType.Creature) == 1) {
pt.add(3,1);
}
}
},
new MagicStatic(
MagicLayer.Ability,
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL) {
@Override
public void modAbilityFlags(
final MagicPermanent source,
final MagicPermanent permanent,
final Set<MagicAbility> flags) {
if (permanent.getController().getNrOfPermanentsWithType(MagicType.Creature) == 1) {
flags.add(MagicAbility.LifeLink);
}
}
}
]