added Plated Geopede
parent
cbab3e07cb
commit
ae1c94a6b3
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue