convert from java code to groovy code
parent
29fb1c0b85
commit
932829acbb
|
@ -1,15 +1,5 @@
|
|||
package magic.card;
|
||||
|
||||
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.MagicWhenComesIntoPlayTrigger;
|
||||
|
||||
public class Voice_of_the_Provinces {
|
||||
public static final MagicWhenComesIntoPlayTrigger T = new MagicWhenComesIntoPlayTrigger() {
|
||||
[
|
||||
new MagicWhenComesIntoPlayTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(
|
||||
final MagicGame game,
|
||||
|
@ -22,7 +12,6 @@ public class Voice_of_the_Provinces {
|
|||
"creature token onto the battlefield."
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
|
@ -30,7 +19,8 @@ public class Voice_of_the_Provinces {
|
|||
final Object[] choiceResults) {
|
||||
game.doAction(new MagicPlayTokenAction(
|
||||
event.getPlayer(),
|
||||
TokenCardDefinitions.get("Human1")));
|
||||
TokenCardDefinitions.get("Human1")
|
||||
));
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
]
|
|
@ -9,4 +9,4 @@ cost={4}{W}{W}
|
|||
pt=3/3
|
||||
ability=flying
|
||||
timing=main
|
||||
requires_card_code
|
||||
requires_groovy_code
|
||||
|
|
Loading…
Reference in New Issue