convert from java code to groovy code
parent
2f0915017f
commit
25f919a95d
|
@ -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));
|
||||
}
|
||||
};
|
||||
}
|
||||
]
|
|
@ -9,4 +9,4 @@ cost={4}{G}
|
|||
pt=5/3
|
||||
ability=trample
|
||||
timing=main
|
||||
requires_card_code
|
||||
requires_groovy_code
|
||||
|
|
Loading…
Reference in New Issue