convert from java code to groovy code
parent
47b8dddc75
commit
6553fe1d5d
|
@ -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 {
|
|||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
]
|
|
@ -8,4 +8,4 @@ subtype=Zombie
|
|||
cost={3}{B}
|
||||
pt=2/2
|
||||
timing=main
|
||||
requires_card_code
|
||||
requires_groovy_code
|
||||
|
|
Loading…
Reference in New Issue