added Molder Beast

master
beholder 2011-10-04 18:21:38 +02:00
parent e65ccaaf9b
commit 783b1545b7
2 changed files with 44 additions and 0 deletions

View File

@ -11994,3 +11994,16 @@ color=r
converted=4
cost={2}{R}{R}
timing=removal
>Molder Beast
image=http://magiccards.info/scans/en/som/125.jpg
value=4
rarity=C
type=Creature
subtype=Beast
color=g
converted=5
cost={4}{G}
pt=5/3
ability=trample
timing=main

View File

@ -0,0 +1,31 @@
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() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
return (otherPermanent.isArtifact()) ?
new MagicEvent(
permanent,
permanent.getController(),
new Object[]{permanent},
this,
permanent + " gets +2/+0 until end of turn.") :
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction((MagicPermanent)data[0],2,0));
}
};
}