replace groovy script with ability in card script
parent
646c8b73c8
commit
448b8c7df6
|
@ -1,23 +1,4 @@
|
|||
[
|
||||
new MagicAtYourUpkeepTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
|
||||
return MagicConditionFactory.HandAtLeast(1) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
new MagicMayChoice("Put a verse counter on SN?"),
|
||||
this,
|
||||
"PN may\$ put a verse counter on SN."
|
||||
):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||||
if (event.isYes()) {
|
||||
game.doAction(new MagicChangeCountersAction(event.getPermanent(),MagicCounterType.Verse,1));
|
||||
}
|
||||
}
|
||||
},
|
||||
new MagicPermanentActivation(
|
||||
new MagicActivationHints(MagicTiming.Counter),
|
||||
"Counter"
|
||||
|
@ -34,7 +15,7 @@
|
|||
source,
|
||||
MagicTargetChoice.NEG_TARGET_SPELL,
|
||||
this,
|
||||
"Counter target spell\$ unless its controller pays X, where X is the number of verse counters on SN."
|
||||
"Counter target spell\$ unless its controller pays {X}, where X is the number of verse counters on SN."
|
||||
);
|
||||
}
|
||||
@Override
|
||||
|
|
|
@ -5,5 +5,6 @@ rarity=U
|
|||
type=Enchantment
|
||||
cost={1}{U}
|
||||
timing=enchantment
|
||||
ability=At the beginning of your upkeep, you may put a verse counter on SN.
|
||||
requires_groovy_code
|
||||
oracle=At the beginning of your upkeep, you may put a verse counter on Lilting Refrain. Sacrifice Lilting Refrain: Counter target spell unless its controller pays {X}, where X is the number of verse counters on Lilting Refrain.
|
||||
|
|
Loading…
Reference in New Issue