convert from java code to groovy code

master
melvin 2013-03-13 22:13:54 +08:00
parent 3fed78372a
commit ce41b1f754
2 changed files with 5 additions and 15 deletions

View File

@ -1,15 +1,5 @@
package magic.card; [
new MagicWhenDiesTrigger() {
import magic.data.TokenCardDefinitions;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicPlayTokenAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenDiesTrigger;
public class Penumbra_Spider {
public static final Object T = new MagicWhenDiesTrigger() {
@Override @Override
public MagicEvent getEvent(final MagicPermanent permanent) { public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent( return new MagicEvent(
@ -26,5 +16,5 @@ public class Penumbra_Spider {
final Object[] choiceResults) { final Object[] choiceResults) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Spider2"))); game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Spider2")));
} }
};
} }
]

View File

@ -9,4 +9,4 @@ cost={2}{G}{G}
pt=2/4 pt=2/4
ability=reach ability=reach
timing=main timing=main
requires_card_code requires_groovy_code