magarena/release/Magarena/scripts/Mind_Stone.groovy

34 lines
955 B
Groovy
Raw Normal View History

2013-05-25 22:47:12 -07:00
[
new MagicPermanentActivation(
[
2013-06-14 20:33:42 -07:00
//Add one for the card itself
2013-05-25 22:47:12 -07:00
MagicConditionFactory.ManaCost("{2}")
],
new MagicActivationHints(MagicTiming.Draw),
"Draw"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [
new MagicTapEvent(source),
new MagicPayManaCostEvent(source,"{1}"),
new MagicSacrificeEvent(source)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Draw a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer()));
2013-05-25 22:47:12 -07:00
}
}
]