convert from java code to groovy code

master
melvin 2013-05-27 15:03:15 +08:00
parent c8c8d33f62
commit d9986fd76c
2 changed files with 8 additions and 27 deletions

View File

@ -1,22 +1,5 @@
package magic.card;
import magic.model.MagicCardDefinition;
import magic.model.MagicGame;
import magic.model.MagicManaCost;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicPermanentAction;
import magic.model.action.MagicPlayTokenAction;
import magic.model.choice.MagicKickerChoice;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.event.MagicSpellCardEvent;
import magic.model.stack.MagicCardOnStack;
import magic.model.target.MagicCopyTargetPicker;
public class Rite_of_Replication {
public static final MagicSpellCardEvent S = new MagicSpellCardEvent() {
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(
final MagicCardOnStack cardOnStack,
@ -30,14 +13,12 @@ public class Rite_of_Replication {
),
MagicCopyTargetPicker.create(),
this,
"Put a token onto the battlefield that's a copy of target creature$. " +
"If SN was kicked$, put five of those tokens onto the battlefield instead."
"Put a token onto the battlefield that's a copy of target creature\$. " +
"If SN was kicked\$, put five of those tokens onto the battlefield instead."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
final MagicPlayer player = event.getPlayer();
@ -49,5 +30,5 @@ public class Rite_of_Replication {
}
});
}
};
}
}
]

View File

@ -6,4 +6,4 @@ rarity=R
type=Sorcery
cost={2}{U}{U}
timing=main
requires_card_code
requires_groovy_code