use long form of pay life cost

master
melvin 2013-10-17 15:30:12 +08:00
parent cd19aafd94
commit 252dc58be7
6 changed files with 10 additions and 10 deletions

View File

@ -8,4 +8,4 @@ subtype=Demon
cost={4}{B}{B}{B}{B}
pt=7/7
timing=main
ability=flying;lifelink;pay {L7}: PN draws seven cards.
ability=flying;lifelink;pay Pay 7 life: PN draws seven cards.

View File

@ -7,6 +7,6 @@ type=Creature
subtype=Sliver
cost={U}{B}
pt=2/2
ability=lord all slivers have pay {L2}: Return SN to its owner's hand.
ability=lord all slivers have "pay Pay 2 life: Return SN to its owner's hand."
static=all
timing=main

View File

@ -6,6 +6,6 @@ rarity=R
type=Enchantment
subtype=Aura
cost={1}{B}{B}
given_ability=pay {T},{L1}: PN draws a card.
given_ability=pay {T}, Pay 1 life: PN draws a card.
enchant=sacrifice,pos land
timing=aura

View File

@ -7,6 +7,6 @@ type=Creature
subtype=Sliver
cost={G}{W}
pt=2/2
ability=lord all slivers have pay {2}{S}: PN gains 4 life.
ability=lord all slivers have "pay {2},{S}: PN gains 4 life."
static=all
timing=main

View File

@ -7,5 +7,5 @@ type=Creature
subtype=Wall
cost={2}{B}
pt=0/2
ability=defender;pay {L1}: SN gets +1/+1 until end of turn.
ability=defender;pay Pay 1 life: SN gets +1/+1 until end of turn.
timing=main

View File

@ -116,7 +116,7 @@ public abstract class MagicPermanentActivation extends MagicActivation<MagicPerm
) {
@Override
public Iterable<? extends MagicEvent> getCostEvent(final MagicPermanent source) {
List<MagicEvent> events = new LinkedList<MagicEvent>();
final List<MagicEvent> events = new LinkedList<MagicEvent>();
for (String cost : costs) {
if (cost.equals("{S}")) {
events.add(new MagicSacrificeEvent(source));
@ -126,7 +126,7 @@ public abstract class MagicPermanentActivation extends MagicActivation<MagicPerm
events.add(new MagicSacrificePermanentEvent(source,MagicTargetChoice.SACRIFICE_CREATURE));
} else if (cost.equals("Sacrifice a Goblin")) {
events.add(new MagicSacrificePermanentEvent(source,MagicTargetChoice.SACRIFICE_GOBLIN));
} else if (cost.equals("Sacrifice a Saproling}")) {
} else if (cost.equals("Sacrifice a Saproling")) {
events.add(new MagicSacrificePermanentEvent(source,MagicTargetChoice.SACRIFICE_SAPROLING));
} else if (cost.equals("Sacrifice a Beast")) {
events.add(new MagicSacrificePermanentEvent(source,MagicTargetChoice.SACRIFICE_BEAST));
@ -140,11 +140,11 @@ public abstract class MagicPermanentActivation extends MagicActivation<MagicPerm
events.add(new MagicTapEvent(source));
} else if (cost.equals("{Q}")) {
events.add(new MagicUntapEvent(source));
} else if (cost.equals("{L1}")) {
} else if (cost.equals("Pay 1 life")) {
events.add(new MagicPayLifeEvent(source, 1));
} else if (cost.equals("{L2}")) {
} else if (cost.equals("Pay 2 life")) {
events.add(new MagicPayLifeEvent(source, 2));
} else if (cost.equals("{L7}")) {
} else if (cost.equals("Pay 7 life")) {
events.add(new MagicPayLifeEvent(source, 7));
} else if (cost.equals("{+1/+1}")) {
events.add(new MagicRemoveCounterEvent(source,MagicCounterType.PlusOne,1));