magarena/release/Magarena/scripts/Ior_Ruin_Expedition.groovy

28 lines
885 B
Groovy

[
new MagicPermanentActivation(
[MagicConditionFactory.ChargeCountersAtLeast(3)],
new MagicActivationHints(MagicTiming.Draw),
"Draw"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [
new MagicRemoveCounterEvent(source,MagicCounterType.Charge,3),
new MagicSacrificeEvent(source)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN draws two cards"
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),2));
}
}
]