magarena/release/Magarena/scripts/Goblin_Matron.groovy

23 lines
824 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
return new MagicEvent(
permanent,
this,
"PN may search his or her library for a Goblin card, reveal it, put it into his or her hand, and shuffle his or her library."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.addEvent(new MagicSearchIntoHandEvent(
event,
new MagicMayChoice(
"Search for a Goblin card?",
MagicTargetChoice.GOBLIN_CARD_FROM_LIBRARY
)
));
}
}
]