convert from java code to groovy code

master
melvin 2013-03-14 21:33:17 +08:00
parent 2f0915017f
commit 25f919a95d
2 changed files with 5 additions and 13 deletions

View File

@ -1,13 +1,5 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenOtherPutIntoGraveyardFromPlayTrigger;
public class Molder_Beast {
public static final MagicWhenOtherPutIntoGraveyardFromPlayTrigger T = new MagicWhenOtherPutIntoGraveyardFromPlayTrigger() {
[
new MagicWhenOtherPutIntoGraveyardFromPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (otherPermanent.isArtifact()) ?
@ -24,5 +16,5 @@ public class Molder_Beast {
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),2,0));
}
};
}
}
]

View File

@ -9,4 +9,4 @@ cost={4}{G}
pt=5/3
ability=trample
timing=main
requires_card_code
requires_groovy_code