added 'target 1/1 creature'
parent
51bb08efbd
commit
b32674db83
|
@ -146,6 +146,8 @@ public class MagicTargetChoice extends MagicChoice {
|
||||||
new MagicTargetChoice(MagicTargetFilter.TARGET_CREATURE,true,MagicTargetHint.Negative,"target creature");
|
new MagicTargetChoice(MagicTargetFilter.TARGET_CREATURE,true,MagicTargetHint.Negative,"target creature");
|
||||||
public static final MagicTargetChoice POS_TARGET_CREATURE=
|
public static final MagicTargetChoice POS_TARGET_CREATURE=
|
||||||
new MagicTargetChoice(MagicTargetFilter.TARGET_CREATURE,true,MagicTargetHint.Positive,"target creature");
|
new MagicTargetChoice(MagicTargetFilter.TARGET_CREATURE,true,MagicTargetHint.Positive,"target creature");
|
||||||
|
public static final MagicTargetChoice POS_TARGET_1_1_CREATURE=
|
||||||
|
new MagicTargetChoice(MagicTargetFilter.TARGET_1_1_CREATURE,true,MagicTargetHint.Positive,"target 1/1 creature");
|
||||||
public static final MagicTargetChoice TARGET_NONCREATURE =
|
public static final MagicTargetChoice TARGET_NONCREATURE =
|
||||||
new MagicTargetChoice(MagicTargetFilter.TARGET_NONCREATURE,true,MagicTargetHint.None,"target noncreature");
|
new MagicTargetChoice(MagicTargetFilter.TARGET_NONCREATURE,true,MagicTargetHint.None,"target noncreature");
|
||||||
public static final MagicTargetChoice NEG_TARGET_NONCREATURE =
|
public static final MagicTargetChoice NEG_TARGET_NONCREATURE =
|
||||||
|
|
|
@ -371,6 +371,16 @@ public interface MagicTargetFilter {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
MagicTargetFilter TARGET_1_1_CREATURE=new MagicTargetFilter() {
|
||||||
|
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicTarget target) {
|
||||||
|
final MagicPermanent perm = (MagicPermanent)target;
|
||||||
|
return perm.isCreature() && perm.getPower() == 1 && perm.getToughness() == 1;
|
||||||
|
}
|
||||||
|
public boolean acceptType(final MagicTargetType targetType) {
|
||||||
|
return targetType==MagicTargetType.Permanent;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
MagicTargetFilter TARGET_NONCREATURE=new MagicTargetFilter() {
|
MagicTargetFilter TARGET_NONCREATURE=new MagicTargetFilter() {
|
||||||
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicTarget target) {
|
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicTarget target) {
|
||||||
return !((MagicPermanent)target).isCreature();
|
return !((MagicPermanent)target).isCreature();
|
||||||
|
|
Loading…
Reference in New Issue