magarena/release/Magarena/scripts/Griselbrand.groovy

26 lines
755 B
Groovy
Raw Normal View History

2013-05-18 00:07:01 -07:00
[
2013-06-23 18:29:26 -07:00
new MagicPermanentActivation(
2013-05-18 00:07:01 -07:00
new MagicActivationHints(MagicTiming.Draw),
2013-06-14 22:23:20 -07:00
"Draw"
) {
2013-05-18 00:07:01 -07:00
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-18 00:07:01 -07:00
return [
2013-06-06 23:33:00 -07:00
new MagicPayLifeEvent(source,7),
2013-05-18 00:07:01 -07:00
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Draw seven cards"
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),7));
}
}
]