added Keldon Marauders. corrected Deadwood Treefolk

master
beholder 2011-10-19 08:46:28 +02:00
parent c460a11d36
commit 34f2354f4c
3 changed files with 97 additions and 2 deletions

View File

@ -15572,3 +15572,16 @@ converted=6
cost={5}{G}
pt=3/6
timing=main
>Keldon Marauders
url=http://magiccards.info/pc/en/102.html
image=http://magiccards.info/scans/en/pc/102.jpg
value=3
rarity=C
type=Creature
subtype=Human,Warrior
color=r
converted=2
cost={1}{R}
pt=3/3
timing=main

View File

@ -53,14 +53,16 @@ public class Deadwood_Treefolk {
public static final MagicWhenLeavesPlayTrigger T4 = new MagicWhenLeavesPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
return new MagicEvent(
return (permanent == data) ?
new MagicEvent(
permanent,
permanent.getController(),
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_GRAVEYARD,
new MagicGraveyardTargetPicker(false),
new Object[]{permanent.getController()},
this,
"Return another target creature card$ from your graveyard to your hand.");
"Return another target creature card$ from your graveyard to your hand.") :
MagicEvent.NONE;
}
@Override
public void executeEvent(

View File

@ -0,0 +1,80 @@
package magic.card;
import magic.model.MagicCounterType;
import magic.model.MagicDamage;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicDealDamageAction;
import magic.model.action.MagicTargetAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.event.MagicEvent;
import magic.model.target.MagicDamageTargetPicker;
import magic.model.target.MagicTarget;
import magic.model.trigger.MagicComesIntoPlayWithCounterTrigger;
import magic.model.trigger.MagicFadeVanishCounterTrigger;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
import magic.model.trigger.MagicWhenLeavesPlayTrigger;
public class Keldon_Marauders {
public static final MagicComesIntoPlayWithCounterTrigger T1 =
new MagicComesIntoPlayWithCounterTrigger(MagicCounterType.Charge,"time",2);
public static final MagicFadeVanishCounterTrigger T2 = new MagicFadeVanishCounterTrigger("time");
public static final MagicWhenComesIntoPlayTrigger T3 = new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
return new MagicEvent(
permanent,
player,
MagicTargetChoice.NEG_TARGET_PLAYER,
new MagicDamageTargetPicker(1),
MagicEvent.NO_DATA,
this,
permanent + " deals 1 damage to target player$.");
}
@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) {
final MagicDamage damage = new MagicDamage(event.getSource(),target,1,false);
game.doAction(new MagicDealDamageAction(damage));
}
});
}
};
public static final MagicWhenLeavesPlayTrigger T4 = new MagicWhenLeavesPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent data) {
return (permanent == data) ?
new MagicEvent(
permanent,
permanent.getController(),
MagicTargetChoice.NEG_TARGET_PLAYER,
new MagicDamageTargetPicker(1),
MagicEvent.NO_DATA,
this,
permanent + " deals 1 damage to target player$.") :
MagicEvent.NONE;
}
@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) {
final MagicDamage damage = new MagicDamage(event.getSource(),target,1,false);
game.doAction(new MagicDealDamageAction(damage));
}
});
}
};
}