33 lines
1.0 KiB
Groovy
33 lines
1.0 KiB
Groovy
[
|
|
new MagicPermanentActivation(
|
|
[MagicCondition.SORCERY_CONDITION],
|
|
new MagicActivationHints(MagicTiming.Main),
|
|
"Discard"
|
|
) {
|
|
|
|
@Override
|
|
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
|
|
return [new MagicSacrificeEvent(source)];
|
|
}
|
|
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
MagicTargetChoice.TARGET_PLAYER,
|
|
this,
|
|
"Target player\$ discards two cards."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetPlayer(game,new MagicPlayerAction() {
|
|
public void doAction(final MagicPlayer player) {
|
|
game.addEvent(new MagicDiscardEvent(event.getPermanent(),player,2));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|