added TARGET_NONLAND_PERMANENT_YOUR_OPPONENT_CONTROLS

master
melvin 2013-02-17 20:19:56 +08:00
parent 63a92436d9
commit a1ce599560
2 changed files with 11 additions and 0 deletions

View File

@ -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=

View File

@ -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();