added Indrik Stomphowler and Woodfall Primus
parent
0f8e38fab1
commit
1d09cb4108
|
@ -972,6 +972,19 @@ power=1
|
|||
toughness=1
|
||||
timing=main
|
||||
|
||||
>Indrik Stomphowler
|
||||
image=http://magiccards.info/scans/en/gvl/10.jpg
|
||||
value=4
|
||||
rarity=U
|
||||
type=Creature
|
||||
subtype=Beast
|
||||
color=g
|
||||
converted=5
|
||||
cost={4}{G}
|
||||
power=4
|
||||
toughness=4
|
||||
timing=main
|
||||
|
||||
>Infantry Veteran
|
||||
image=http://magiccards.info/scans/en/ddf/4.jpg
|
||||
value=2
|
||||
|
@ -1493,6 +1506,20 @@ power=4
|
|||
toughness=4
|
||||
timing=main
|
||||
|
||||
>Woodfall Primus
|
||||
image=http://magiccards.info/scans/en/shm/135.jpg
|
||||
value=5
|
||||
rarity=R
|
||||
type=Creature
|
||||
subtype=Treefolk,Shaman
|
||||
color=g
|
||||
converted=8
|
||||
cost={5}{G}{G}{G}
|
||||
power=6
|
||||
toughness=6
|
||||
ability=trample,persist
|
||||
timing=main
|
||||
|
||||
>Carven Caryatid
|
||||
image=http://magiccards.info/scans/en/rav/155.jpg
|
||||
value=3
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicDestroyAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.target.MagicDestroyTargetPicker;
|
||||
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
|
||||
|
||||
public class Indrik_Stomphowler {
|
||||
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,
|
||||
MagicTargetChoice.NEG_TARGET_ARTIFACT_OR_ENCHANTMENT,
|
||||
new MagicDestroyTargetPicker(false),
|
||||
MagicEvent.NO_DATA,
|
||||
this,
|
||||
"Destroy target artifact or enchantment$.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
|
||||
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent permanent) {
|
||||
game.doAction(new MagicDestroyAction(permanent));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicDestroyAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.target.MagicDestroyTargetPicker;
|
||||
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
|
||||
|
||||
public class Woodfall_Primus {
|
||||
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,
|
||||
MagicTargetChoice.NEG_TARGET_NONCREATURE,
|
||||
new MagicDestroyTargetPicker(false),
|
||||
MagicEvent.NO_DATA,
|
||||
this,
|
||||
"Destroy target noncreature permanent$.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(final MagicGame game,final MagicEvent event,final Object data[],final Object[] choiceResults) {
|
||||
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent permanent) {
|
||||
game.doAction(new MagicDestroyAction(permanent));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
|
@ -106,6 +106,8 @@ public class MagicTargetChoice extends MagicChoice {
|
|||
new MagicTargetChoice(MagicTargetFilter.TARGET_CREATURE,true,MagicTargetHint.Negative,"target creature");
|
||||
public static final MagicTargetChoice POS_TARGET_CREATURE=
|
||||
new MagicTargetChoice(MagicTargetFilter.TARGET_CREATURE,true,MagicTargetHint.Positive,"target creature");
|
||||
public static final MagicTargetChoice NEG_TARGET_NONCREATURE =
|
||||
new MagicTargetChoice(MagicTargetFilter.TARGET_NONCREATURE,true,MagicTargetHint.Negative,"target noncreature");
|
||||
public static final MagicTargetChoice NEG_TARGET_NONBLACK_CREATURE=
|
||||
new MagicTargetChoice(MagicTargetFilter.TARGET_NONBLACK_CREATURE,true,MagicTargetHint.Negative,"target nonblack creature");
|
||||
public static final MagicTargetChoice NEG_TARGET_NONARTIFACT_CREATURE=
|
||||
|
|
|
@ -280,6 +280,16 @@ public interface MagicTargetFilter {
|
|||
}
|
||||
};
|
||||
|
||||
MagicTargetFilter TARGET_NONCREATURE=new MagicTargetFilter() {
|
||||
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicTarget target) {
|
||||
return !((MagicPermanent)target).isCreature();
|
||||
}
|
||||
|
||||
public boolean acceptType(final MagicTargetType targetType) {
|
||||
return targetType==MagicTargetType.Permanent;
|
||||
}
|
||||
};
|
||||
|
||||
MagicTargetFilter TARGET_CREATURE_OR_PLAYER=new MagicTargetFilter() {
|
||||
|
||||
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicTarget target) {
|
||||
|
|
Loading…
Reference in New Issue