28 lines
977 B
Groovy
28 lines
977 B
Groovy
|
[
|
||
|
new MagicSpellCardEvent() {
|
||
|
@Override
|
||
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
||
|
return new MagicEvent(
|
||
|
cardOnStack,
|
||
|
MagicTargetChoice.NEG_TARGET_PLAYER,
|
||
|
this,
|
||
|
"PN looks at target player's\$ hand."+
|
||
|
"PN draws a card at the beginning of the next turn's upkeep."
|
||
|
);
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||
|
event.processTargetPlayer(game, {
|
||
|
MagicPlayer player ->
|
||
|
game.doAction(new MagicRevealAction(player.getHand()));
|
||
|
game.doAction(new MagicAddTriggerAction(
|
||
|
MagicAtUpkeepTrigger.YouDraw(
|
||
|
event.getSource(),
|
||
|
event.getPlayer()
|
||
|
)
|
||
|
));
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
]
|