convert from java code to groovy code

master
melvin 2013-03-18 14:06:02 +08:00
parent 1dd8728475
commit 6f25f46644
2 changed files with 5 additions and 15 deletions

View File

@ -1,15 +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.MagicWhenAttacksTrigger;
public class Hissing_Miasma {
public static final MagicWhenAttacksTrigger T = new MagicWhenAttacksTrigger() {
[
new MagicWhenAttacksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
final MagicPlayer controller=creature.getController();
@ -30,5 +20,5 @@ public class Hissing_Miasma {
final Object[] choiceResults) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),-1));
}
};
}
}
]

View File

@ -6,4 +6,4 @@ rarity=U
type=Enchantment
cost={1}{B}{B}
timing=enchantment
requires_card_code
requires_groovy_code