magarena/release/Magarena/scripts/Jayemdae_Tome.groovy

33 lines
881 B
Groovy
Raw Normal View History

2013-05-19 01:04:17 -07:00
[
new MagicPermanentActivation(
[
MagicCondition.CAN_TAP_CONDITION,
MagicConditionFactory.ManaCost("{4}")
],
new MagicActivationHints(MagicTiming.Draw),
"Draw"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [
2013-05-21 23:06:47 -07:00
new MagicPayManaCostTapEvent(source, "{4}")
2013-05-19 01:04:17 -07:00
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN draws a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),1));
}
}
]