magarena/incomplete/Sorcerous_Sight.groovy

23 lines
770 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.TARGET_OPPONENT,
this,
"PN looks at target opponent's\$ hand."+
"PN Draws a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPlayer(game, {
MagicPlayer player ->
game.doAction(new MagicRevealAction(player.getHand()));
game.doAction(new MagicDrawAction(event.getPlayer()));
});
}
}
]