Fix bugs and typos.

master
Bilbo 2018-10-28 13:03:15 +01:00 committed by Melvin Zhang
parent 9cc1dac5aa
commit f553967914
6 changed files with 13 additions and 17 deletions

View File

@ -6,7 +6,7 @@
new MagicEvent(
permanent,
this,
"PN Sacrifices SN. If PN does, then creates a 5/5 red Dragon creature token with flying."
"PN sacrifices SN. If PN does, then create a 5/5 red Dragon creature token with flying."
):
MagicEvent.NONE;
}
@ -14,8 +14,8 @@
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicEvent sac = new MagicSacrificeEvent(event.getPermanent());
if (sac.isSatisfied()) {
game.addEvent(sac);
game.doAction(new PlayTokensAction(event.getPlayer(), CardDefinitions.getToken("5/5 red Dragon creature token with flying"),1));
game.addEvent(sac);
game.doAction(new PlayTokensAction(event.getPlayer(), CardDefinitions.getToken("5/5 red Dragon creature token with flying"),1));
}
}
}

View File

@ -19,8 +19,8 @@
source,
this,
"Reveal the top card of PN's library. If it's a creature card, create a 1/1 green Saproling creature token. " +
"If it's a land card, put that card onto the battlefield under PN control. " +
"If it's a noncreature, nonland card, PN gain 2 life."
"If it's a land card, put that card onto the battlefield under PN's control. " +
"If it's a noncreature, nonland card, PN gains 2 life."
);
}

View File

@ -21,7 +21,7 @@ def Enchantment = {
permanent,
new MagicMayChoice(
new MagicPayManaCostChoice(MagicManaCost.create("{1}{R}")),
choice,
choice,
),
this,
"PN may\$ pay {1}{R}\$. If PN does, PN creates a token that's a copy of another target creature\$, " +
@ -36,7 +36,7 @@ def Enchantment = {
event.getPlayer(),
it,
Enchantment,
MagicPlayMod.HASTE_UEOT,
MagicPlayMod.HASTE,
MagicPlayMod.EXILE_AT_END_OF_TURN
));
});

View File

@ -15,9 +15,9 @@
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game, {
game.doAction(new ChangeCountersAction(event.getPlayer(),it,MagicCounterType.PlusOne,1));
game.doAction(new ChangeCountersAction(event.getPlayer(), it, MagicCounterType.PlusOne,1));
if (it.getCounters(MagicCounterType.PlusOne) >= 3) {
game.doAction(new TransformAction(event.getPermanent()));
game.doAction(new TransformAction(event.getPermanent()));
}
});
}

View File

@ -64,10 +64,6 @@ def action = {
final int amount = LEGENDARY_CREATURE_YOU_CONTROL.except(permanent).filter(source.getController()).size();
pt.add(amount,amount);
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target;
}
}
]

View File

@ -14,10 +14,10 @@
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPermanent SN = event.getPermanent();
if (SN.isValid()) {
for (final MagicPlayer player : game.getAPNAP()) {
final List<MagicCard> graveyard = cardName("Myr Servitor").from(MagicTargetType.Graveyard).filter(player);
for (final MagicCard card : graveyard) {
game.doAction(new ReanimateAction(card, player));
for (final MagicPlayer player : game.getAPNAP()) {
final List<MagicCard> graveyard = cardName("Myr Servitor").from(MagicTargetType.Graveyard).filter(player);
for (final MagicCard card : graveyard) {
game.doAction(new ReanimateAction(card, player));
}
}
}