added Defender en-Vec and Jolting Merfolk

master
beholder 2011-10-18 08:05:41 +02:00
parent 3373815236
commit 37c254962d
3 changed files with 119 additions and 0 deletions

View File

@ -15399,3 +15399,29 @@ cost={1}{U}
pt=2/2
ability=flying
timing=main
>Defender en-Vec
url=http://magiccards.info/ne/en/5.html
image=http://magiccards.info/scans/en/ne/5.jpg
value=3
rarity=C
type=Creature
subtype=Human,Cleric
color=w
converted=4
cost={3}{W}
pt=2/4
timing=main
>Jolting Merfolk
url=http://magiccards.info/ne/en/34.html
image=http://magiccards.info/scans/en/ne/34.jpg
value=2
rarity=U
type=Creature
subtype=Merfolk
color=u
converted=4
cost={2}{U}{U}
pt=2/2
timing=main

View File

@ -0,0 +1,61 @@
package magic.card;
import magic.model.MagicCounterType;
import magic.model.MagicGame;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.MagicSource;
import magic.model.action.MagicPreventDamageAction;
import magic.model.action.MagicTargetAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.condition.MagicCondition;
import magic.model.event.MagicActivationHints;
import magic.model.event.MagicEvent;
import magic.model.event.MagicPermanentActivation;
import magic.model.event.MagicRemoveCounterEvent;
import magic.model.event.MagicTiming;
import magic.model.target.MagicPreventTargetPicker;
import magic.model.target.MagicTarget;
import magic.model.trigger.MagicComesIntoPlayWithCounterTrigger;
import magic.model.trigger.MagicFadeVanishCounterTrigger;
public class Defender_en_Vec {
public static final MagicComesIntoPlayWithCounterTrigger T1 =
new MagicComesIntoPlayWithCounterTrigger(MagicCounterType.Charge,"fade",4);
public static final MagicFadeVanishCounterTrigger T2 = new MagicFadeVanishCounterTrigger("fade");
public static final MagicPermanentActivation A = new MagicPermanentActivation(
new MagicCondition[]{MagicCondition.CHARGE_COUNTER_CONDITION},
new MagicActivationHints(MagicTiming.Pump),
"Prevent") {
@Override
public MagicEvent[] getCostEvent(final MagicSource source) {
return new MagicEvent[]{
new MagicRemoveCounterEvent((MagicPermanent)source,MagicCounterType.Charge,1)};
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
source.getController(),
MagicTargetChoice.POS_TARGET_CREATURE_OR_PLAYER,
MagicPreventTargetPicker.getInstance(),
MagicEvent.NO_DATA,
this,
"Prevent the next 2 damage that would be dealt " +
"to target creature or player$ this turn.");
}
@Override
public void executeEvent(final MagicGame game,final MagicEvent event,final Object[] data,final Object[] choiceResults) {
event.processTarget(game,choiceResults,0,new MagicTargetAction() {
public void doAction(final MagicTarget target) {
game.doAction(new MagicPreventDamageAction(target,2));
}
});
}
};
}

View File

@ -0,0 +1,32 @@
package magic.card;
import magic.model.MagicCounterType;
import magic.model.MagicPermanent;
import magic.model.MagicSource;
import magic.model.condition.MagicCondition;
import magic.model.event.MagicActivationHints;
import magic.model.event.MagicEvent;
import magic.model.event.MagicPermanentActivation;
import magic.model.event.MagicRemoveCounterEvent;
import magic.model.event.MagicTapCreatureActivation;
import magic.model.event.MagicTiming;
import magic.model.trigger.MagicComesIntoPlayWithCounterTrigger;
import magic.model.trigger.MagicFadeVanishCounterTrigger;
public class Jolting_Merfolk {
public static final MagicComesIntoPlayWithCounterTrigger T1 =
new MagicComesIntoPlayWithCounterTrigger(MagicCounterType.Charge,"fade",4);
public static final MagicFadeVanishCounterTrigger T2 = new MagicFadeVanishCounterTrigger("fade");
public static final MagicPermanentActivation A = new MagicTapCreatureActivation(
new MagicCondition[]{MagicCondition.CHARGE_COUNTER_CONDITION},
new MagicActivationHints(MagicTiming.Tapping),
"Tap") {
@Override
public MagicEvent[] getCostEvent(final MagicSource source) {
return new MagicEvent[]{
new MagicRemoveCounterEvent((MagicPermanent)source,MagicCounterType.Charge,1)};
}
};
}