added TARGET_NONLAND_PERMANENT_YOUR_OPPONENT_CONTROLS
parent
63a92436d9
commit
a1ce599560
|
@ -108,6 +108,8 @@ public class MagicTargetChoice extends MagicChoice {
|
|||
|
||||
public static final MagicTargetChoice TARGET_NONLAND_PERMANENT=
|
||||
new MagicTargetChoice(MagicTargetFilter.TARGET_NONLAND_PERMANENT,true,MagicTargetHint.None,"target nonland permanent");
|
||||
public static final MagicTargetChoice TARGET_NONLAND_PERMANENT_YOUR_OPPONENT_CONTROLS =
|
||||
new MagicTargetChoice(MagicTargetFilter.TARGET_NONLAND_PERMANENT_YOUR_OPPONENT_CONTROLS,true,MagicTargetHint.None,"target nonland permanent your opponent controls");
|
||||
public static final MagicTargetChoice NEG_TARGET_NONLAND_PERMANENT=
|
||||
new MagicTargetChoice(MagicTargetFilter.TARGET_NONLAND_PERMANENT,true,MagicTargetHint.Negative,"target nonland permanent");
|
||||
public static final MagicTargetChoice NEG_TARGET_NONLAND_PERMANENT_CMC_LEQ_3=
|
||||
|
|
|
@ -330,6 +330,15 @@ public interface MagicTargetFilter<T extends MagicTarget> {
|
|||
}
|
||||
};
|
||||
|
||||
MagicPermanentFilterImpl TARGET_NONLAND_PERMANENT_YOUR_OPPONENT_CONTROLS=new MagicPermanentFilterImpl() {
|
||||
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicPermanent target) {
|
||||
return !target.isLand() && target.isOpponent(player);
|
||||
}
|
||||
public boolean acceptType(final MagicTargetType targetType) {
|
||||
return targetType==MagicTargetType.Permanent;
|
||||
}
|
||||
};
|
||||
|
||||
MagicPermanentFilterImpl TARGET_NONCREATURE_ARTIFACT=new MagicPermanentFilterImpl() {
|
||||
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicPermanent target) {
|
||||
return target.isArtifact() && !target.isCreature();
|
||||
|
|
Loading…
Reference in New Issue