22 lines
708 B
Groovy
22 lines
708 B
Groovy
[
|
|
new MagicStatic(
|
|
MagicLayer.Ability,
|
|
MagicTargetFilter.TARGET_CREATURE) {
|
|
@Override
|
|
public void modAbilityFlags(
|
|
final MagicPermanent source,
|
|
final MagicPermanent permanent,
|
|
final Set<MagicAbility> flags) {
|
|
flags.add(MagicAbility.Intimidate);
|
|
}
|
|
@Override
|
|
public boolean condition(
|
|
final MagicGame game,
|
|
final MagicPermanent source,
|
|
final MagicPermanent target) {
|
|
return target == source.getEnchantedCreature() &&
|
|
source.getController().getNrOfPermanentsWithType(MagicType.Creature) == 1;
|
|
}
|
|
}
|
|
]
|