26 lines
813 B
Groovy
26 lines
813 B
Groovy
[
|
|
new MagicPermanentActivation(
|
|
[MagicCondition.SEVEN_LIFE_CONDITION],
|
|
new MagicActivationHints(MagicTiming.Draw),
|
|
"Draw") {
|
|
@Override
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
return [
|
|
new MagicPayLifeEvent(source,source.getController(),7),
|
|
];
|
|
}
|
|
@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));
|
|
}
|
|
}
|
|
]
|