convert from java code to groovy code

master
melvin 2013-03-18 14:04:05 +08:00
parent 76ae7a7278
commit 2ba7756461
2 changed files with 5 additions and 14 deletions

View File

@ -1,14 +1,5 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeLifeAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenBecomesBlockedTrigger;
public class Vedalken_Ghoul {
public static final MagicWhenBecomesBlockedTrigger T = new MagicWhenBecomesBlockedTrigger() {
[
new MagicWhenBecomesBlockedTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocked) {
return (permanent == blocked) ?
@ -28,5 +19,5 @@ public class Vedalken_Ghoul {
final Object[] choiceResults) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),-4));
}
};
}
}
]

View File

@ -8,4 +8,4 @@ subtype=Vedalken,Zombie
cost={U}{B}
pt=1/1
timing=main
requires_card_code
requires_groovy_code