magarena/release/Magarena/scripts/Force_of_Will.groovy

23 lines
746 B
Groovy

[
new MagicCardActivation(
[MagicCondition.CARD_CONDITION],
new MagicActivationHints(MagicTiming.Counter,true),
"Alt"
) {
public Iterable<MagicEvent> getCostEvent(final MagicCard source) {
final MagicTargetChoice targetChoice = new MagicTargetChoice(
new MagicTargetFilter.MagicOtherCardTargetFilter(
MagicTargetFilter.TARGET_BLUE_CARD_FROM_HAND,
source
),
MagicTargetHint.None,
"a blue card from your hand"
);
return [
new MagicPayLifeEvent(source, 1),
new MagicExileCardEvent(source, targetChoice)
];
}
}
]