31 lines
1005 B
Groovy
31 lines
1005 B
Groovy
|
[
|
||
|
new MagicPermanentActivation(
|
||
|
[MagicCondition.CONTROL_ARTIFACT_CONDITION],
|
||
|
new MagicActivationHints(MagicTiming.Pump),
|
||
|
"Pump"
|
||
|
) {
|
||
|
@Override
|
||
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
||
|
return [
|
||
|
new MagicSacrificePermanentEvent(
|
||
|
source,
|
||
|
source.getController(),
|
||
|
MagicTargetChoice.SACRIFICE_ARTIFACT
|
||
|
)
|
||
|
];
|
||
|
}
|
||
|
@Override
|
||
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||
|
return new MagicEvent(
|
||
|
source,
|
||
|
this,
|
||
|
"PN puts a +1/+1 counter on SN."
|
||
|
);
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||
|
game.doAction(new MagicChangeCountersAction(event.getPermanent(),MagicCounterType.PlusOne,1,true));
|
||
|
}
|
||
|
}
|
||
|
]
|