mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
add ChosenColor as a property in Card.java
This commit is contained in:
@@ -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;
|
||||||
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")) {
|
} else if (Property.startsWith("YouCtrl")) {
|
||||||
if (!getController().isPlayer(sourceController)) return false;
|
if (!getController().isPlayer(sourceController)) return false;
|
||||||
} else if (Property.startsWith("YouDontCtrl")) {
|
} else if (Property.startsWith("YouDontCtrl")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user