replace groovy script with ability in card script

master
melvin 2014-10-22 10:38:19 +08:00
parent 646c8b73c8
commit 448b8c7df6
2 changed files with 2 additions and 20 deletions

View File

@ -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

View File

@ -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.