added Hedron Crab and Hedron Rover
parent
3e00dd3a37
commit
e6942fccce
|
@ -12389,3 +12389,25 @@ cost={3}{B}
|
|||
pt=3/1
|
||||
ability=can't block
|
||||
timing=main
|
||||
|
||||
>Hedron Crab
|
||||
image=http://magiccards.info/scans/en/zen/47.jpg
|
||||
value=2
|
||||
rarity=U
|
||||
type=Creature
|
||||
subtype=Crab
|
||||
converted=1
|
||||
cost={U}
|
||||
pt=0/2
|
||||
timing=main
|
||||
|
||||
>Hedron Rover
|
||||
image=http://magiccards.info/scans/en/wwk/125.jpg
|
||||
value=2
|
||||
rarity=C
|
||||
type=Artifact,Creature
|
||||
subtype=Construct
|
||||
converted=4
|
||||
cost={4}
|
||||
pt=2/2
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicMillLibraryAction;
|
||||
import magic.model.action.MagicPlayerAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenOtherComesIntoPlayTrigger;
|
||||
|
||||
public class Hedron_Crab {
|
||||
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();
|
||||
return (player == played.getController() && played.isLand()) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
MagicTargetChoice.TARGET_PLAYER,
|
||||
MagicEvent.NO_DATA,
|
||||
this,
|
||||
"Target player$ puts the top three cards of his or her library into his or her graveyard."):
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
event.processTargetPlayer(game,choiceResults,0,new MagicPlayerAction() {
|
||||
public void doAction(final MagicPlayer player) {
|
||||
game.doAction(new MagicMillLibraryAction(player,3));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
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 Hedron_Rover {
|
||||
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();
|
||||
return (player == played.getController() && played.isLand()) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
new Object[]{permanent},
|
||||
this,
|
||||
permanent + " gets +2/+2 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,2));
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue