added Faceless Butcher and Journey to Nowhere

master
beholder 2011-10-12 15:10:32 +02:00
parent dfc6ba22e6
commit 57331c9dec
4 changed files with 177 additions and 0 deletions

View File

@ -15069,3 +15069,29 @@ converted=6
cost={4}{G}{G} cost={4}{G}{G}
pt=9/9 pt=9/9
timing=main timing=main
>Faceless Butcher
url=http://magiccards.info/tr/en/60.html
image=http://magiccards.info/scans/en/tr/60.jpg
value=3
removal=2
rarity=C
type=Creature
subtype=Nightmare,Horror
color=b
converted=4
cost={2}{B}{B}
pt=2/3
timing=main
>Journey to Nowhere
url=http://magiccards.info/cmd/en/17.html
image=http://magiccards.info/scans/en/cmd/17.jpg
value=3
removal=2
rarity=C
type=Enchantment
color=w
converted=2
cost={1}{W}
timing=enchantment

View File

@ -4675,6 +4675,7 @@ timing=smain
url=http://magiccards.info/isd/en/15.html url=http://magiccards.info/isd/en/15.html
image=http://magiccards.info/scans/en/isd/15.jpg image=http://magiccards.info/scans/en/isd/15.jpg
value=3 value=3
removal=2
rarity=U rarity=U
type=Creature type=Creature
subtype=Human,Cleric subtype=Human,Cleric

View File

@ -0,0 +1,78 @@
package magic.card;
import magic.model.MagicCard;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.MagicLocationType;
import magic.model.MagicPermanent;
import magic.model.action.MagicExileUntilThisLeavesPlayAction;
import magic.model.action.MagicPermanentAction;
import magic.model.action.MagicPlayCardAction;
import magic.model.action.MagicRemoveCardAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.target.MagicExileTargetPicker;
import magic.model.target.MagicTargetFilter;
import magic.model.target.MagicTargetHint;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
import magic.model.trigger.MagicWhenLeavesPlayTrigger;
public class Faceless_Butcher {
public static final MagicWhenComesIntoPlayTrigger T1 = new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
final MagicTargetFilter targetFilter = new MagicTargetFilter.MagicOtherPermanentTargetFilter(
MagicTargetFilter.TARGET_CREATURE,permanent);
final MagicTargetChoice targetChoice = new MagicTargetChoice(
targetFilter,false,MagicTargetHint.None,"another creature to exile");
return new MagicEvent(
permanent,
player,
targetChoice,
MagicExileTargetPicker.getInstance(),
new Object[]{permanent},
this,
"Exile another creature$.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
final MagicPermanent permanent = (MagicPermanent)data[0];
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicExileUntilThisLeavesPlayAction(permanent,creature));
}
});
}
};
public static final MagicWhenLeavesPlayTrigger T2 = new MagicWhenLeavesPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPermanent data) {
if (permanent == data &&
permanent.getExiledCard() != MagicCard.NONE) {
final MagicCard exiledCard = permanent.getExiledCard();
return new MagicEvent(
permanent,
permanent.getController(),
new Object[]{exiledCard},
this,
"Return " + exiledCard + " to the battlefield");
}
return MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
final MagicCard exiledCard = (MagicCard)data[0];
game.doAction(new MagicRemoveCardAction(exiledCard,MagicLocationType.Exile));
game.doAction(new MagicPlayCardAction(exiledCard,exiledCard.getOwner(),MagicPlayCardAction.NONE));
}
};
}

View File

@ -0,0 +1,72 @@
package magic.card;
import magic.model.MagicCard;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.MagicLocationType;
import magic.model.MagicPermanent;
import magic.model.action.MagicExileUntilThisLeavesPlayAction;
import magic.model.action.MagicPermanentAction;
import magic.model.action.MagicPlayCardAction;
import magic.model.action.MagicRemoveCardAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.target.MagicExileTargetPicker;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
import magic.model.trigger.MagicWhenLeavesPlayTrigger;
public class Journey_to_Nowhere {
public static final MagicWhenComesIntoPlayTrigger T1 = new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
return new MagicEvent(
permanent,
player,
MagicTargetChoice.TARGET_CREATURE,
MagicExileTargetPicker.getInstance(),
new Object[]{permanent},
this,
"Exile target creature$.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
final MagicPermanent permanent = (MagicPermanent)data[0];
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicExileUntilThisLeavesPlayAction(permanent,creature));
}
});
}
};
public static final MagicWhenLeavesPlayTrigger T2 = new MagicWhenLeavesPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPermanent data) {
if (permanent == data &&
permanent.getExiledCard() != MagicCard.NONE) {
final MagicCard exiledCard = permanent.getExiledCard();
return new MagicEvent(
permanent,
permanent.getController(),
new Object[]{exiledCard},
this,
"Return " + exiledCard + " to the battlefield");
}
return MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
final MagicCard exiledCard = (MagicCard)data[0];
game.doAction(new MagicRemoveCardAction(exiledCard,MagicLocationType.Exile));
game.doAction(new MagicPlayCardAction(exiledCard,exiledCard.getOwner(),MagicPlayCardAction.NONE));
}
};
}