add ChosenColor as a property in Card.java

This commit is contained in:
slapshot5
2011-10-01 18:18:37 +00:00
parent 914beb6402
commit adbef6c43e

View File

@@ -5005,6 +5005,8 @@ public class Card extends GameEntity implements Comparable<Card> {
{
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")) {