added Plated Geopede

master
beholder 2011-09-03 11:12:58 +02:00
parent cbab3e07cb
commit ae1c94a6b3
2 changed files with 51 additions and 0 deletions

View File

@ -4593,6 +4593,20 @@ power=0
toughness=1
timing=main
>Plated Geopede
image=http://magiccards.info/scans/en/zen/141.jpg
value=2
rarity=C
type=Creature
subtype=Insect
color=r
converted=2
cost={1}{R}
power=1
toughness=1
ability=first strike
timing=main
>White Knight
image=http://magiccards.info/scans/en/m11/39.jpg
value=3

View File

@ -0,0 +1,37 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenOtherComesIntoPlayTrigger;
public class Plated_Geopede {
public static final MagicWhenOtherComesIntoPlayTrigger T = new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent played) {
final MagicPlayer player = permanent.getController();
if (player == played.getController() &&
played.isLand()) {
return new MagicEvent(
permanent,
player,
new Object[]{permanent},
this,
permanent + " gets +2/+2 until end of turn.");
} else {
return null;
}
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
game.doAction(new MagicChangeTurnPTAction((MagicPermanent)data[0],2,2));
}
};
}