From adbef6c43e7dae31e9f3298eaa54b668f7188c15 Mon Sep 17 00:00:00 2001 From: slapshot5 Date: Sat, 1 Oct 2011 18:18:37 +0000 Subject: [PATCH] add ChosenColor as a property in Card.java --- src/main/java/forge/Card.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/forge/Card.java b/src/main/java/forge/Card.java index 827c68b98e5..3acf3e091ac 100644 --- a/src/main/java/forge/Card.java +++ b/src/main/java/forge/Card.java @@ -5005,6 +5005,8 @@ public class Card extends GameEntity implements Comparable { { if (Property.startsWith("non") && (CardUtil.getColors(this).size() == 1 && !isColorless())) return false; if (!Property.startsWith("non") && (CardUtil.getColors(this).size() > 1 || isColorless())) return false; + } else if (Property.equals("ChosenColor")) { + if (!CardUtil.getColors(this).contains(source.getChosenColor())) return false; } else if (Property.startsWith("YouCtrl")) { if (!getController().isPlayer(sourceController)) return false; } else if (Property.startsWith("YouDontCtrl")) {