- M14: added Grim Return, Scourge of Valkas, and Windreader Sphinx

This commit is contained in:
swordshine
2013-05-21 08:46:28 +00:00
parent 7c5eae6e42
commit c04ce7e5c4

View File

@@ -5890,6 +5890,19 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
return false;
} else if (property.startsWith("ThisTurnEntered")) {
final String restrictions = property.split("ThisTurnEntered_")[1];
final String[] res = restrictions.split("_");
final ZoneType destination = ZoneType.smartValueOf(res[0]);
ZoneType origin = null;
if (res[1].equals("from")) {
origin = ZoneType.smartValueOf(res[2]);
}
List<Card> list = CardUtil.getThisTurnEntered(destination,
origin, "Card", source);
if (!list.contains(this)) {
return false;
}
} else if (property.startsWith("sharesTypeWith")) {
if (property.equals("sharesTypeWith")) {
if (!this.sharesTypeWith(source)) {