34 lines
961 B
Groovy
34 lines
961 B
Groovy
|
[
|
||
|
new MagicPermanentActivation(
|
||
|
[
|
||
|
MagicCondition.CAN_TAP_CONDITION,
|
||
|
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(),1));
|
||
|
}
|
||
|
}
|
||
|
]
|