convert from java code to groovy code

master
melvin 2013-05-26 10:26:27 +08:00
parent 47b8dddc75
commit 6553fe1d5d
2 changed files with 7 additions and 24 deletions

View File

@ -1,22 +1,5 @@
package magic.card;
import magic.model.MagicCard;
import magic.model.MagicGame;
import magic.model.MagicLocationType;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicCardAction;
import magic.model.action.MagicMoveCardAction;
import magic.model.action.MagicRemoveCardAction;
import magic.model.choice.MagicMayChoice;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.target.MagicGraveyardTargetPicker;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
public class Gravedigger {
public static final MagicWhenComesIntoPlayTrigger T = new MagicWhenComesIntoPlayTrigger() {
[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
return new MagicEvent(
@ -26,8 +9,8 @@ public class Gravedigger {
),
new MagicGraveyardTargetPicker(false),
this,
"PN may$ return target creature card$ from" +
" his or her graveyard to his or her hand."
"PN may$ return target creature card$ from " +
"his or her graveyard to his or her hand."
);
}
@ -42,5 +25,5 @@ public class Gravedigger {
});
}
}
};
}
}
]

View File

@ -8,4 +8,4 @@ subtype=Zombie
cost={3}{B}
pt=2/2
timing=main
requires_card_code
requires_groovy_code