added Kitsune Blademaster and Kitsune Dawnblade. fixed Deathbringer Liege

master
beholder 2011-10-08 14:24:30 +02:00
parent 62b0e9d6b1
commit c41d0ed1ae
4 changed files with 92 additions and 4 deletions

View File

@ -12659,3 +12659,28 @@ cost={2}{G}
pt=2/1
ability=can't be countered
timing=main
>Kitsune Blademaster
image=http://magiccards.info/scans/en/chk/25.jpg
value=3
rarity=C
type=Creature
subtype=Fox,Samurai
color=w
converted=3
cost={2}{W}
pt=2/2
ability=first strike
timing=main
>Kitsune Dawnblade
image=http://magiccards.info/scans/en/sok/16.jpg
value=3
rarity=C
type=Creature
subtype=Fox,Samurai
color=w
converted=5
cost={4}{W}
pt=2/3
timing=main

View File

@ -87,20 +87,19 @@ public class Deathbringer_Liege {
new MagicEvent(
permanent,
player,
new MagicMayChoice("You may tap target creature.",MagicTargetChoice.NEG_TARGET_CREATURE),
new MagicMayChoice(player + " may tap target creature.",MagicTargetChoice.NEG_TARGET_CREATURE),
new MagicTapTargetPicker(true,false),
MagicEvent.NO_DATA,
this,
"You may$ tap target creature$."):
player + " may$ tap target creature$."):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
event.processTargetPermanent(game,choiceResults,1,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (creature.isTapped()) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
}

View File

@ -0,0 +1,12 @@
package magic.card;
import magic.model.trigger.MagicBecomesBlockedPumpTrigger;
import magic.model.trigger.MagicWhenBlocksPumpTrigger;
public class Kitsune_Blademaster {
private static final int amount = 1;
public static final MagicBecomesBlockedPumpTrigger T1 = new MagicBecomesBlockedPumpTrigger(amount,amount);
public static final MagicWhenBlocksPumpTrigger T2 = new MagicWhenBlocksPumpTrigger(amount,amount);
}

View File

@ -0,0 +1,52 @@
package magic.card;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicPermanentAction;
import magic.model.action.MagicTapAction;
import magic.model.choice.MagicMayChoice;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.target.MagicTapTargetPicker;
import magic.model.trigger.MagicBecomesBlockedPumpTrigger;
import magic.model.trigger.MagicWhenBlocksPumpTrigger;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
public class Kitsune_Dawnblade {
private static final int amount = 1;
public static final MagicBecomesBlockedPumpTrigger T1 = new MagicBecomesBlockedPumpTrigger(amount,amount);
public static final MagicWhenBlocksPumpTrigger T2 = new MagicWhenBlocksPumpTrigger(amount,amount);
public static final MagicWhenComesIntoPlayTrigger T = new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
return new MagicEvent(
permanent,
player,
new MagicMayChoice(player + " may tap target creature.",MagicTargetChoice.NEG_TARGET_CREATURE),
new MagicTapTargetPicker(true,false),
MagicEvent.NO_DATA,
this,
player + " may$ tap target creature$.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
event.processTargetPermanent(game,choiceResults,1,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
if (!creature.isTapped()) {
game.doAction(new MagicTapAction(creature,true));
}
}
});
}
}
};
}