support for archaeomancers_map.txt

This commit is contained in:
Northmoc
2021-04-05 23:05:56 -04:00
parent 3fd3a3e5aa
commit 86d72b15c5

View File

@@ -341,7 +341,14 @@ public class CardProperty {
} }
} else if (property.startsWith("ControllerControls")) { } else if (property.startsWith("ControllerControls")) {
final String type = property.substring(18); final String type = property.substring(18);
if (type.startsWith("AtLeastAsMany")) { if (type.startsWith("More")) {
String realType = type.split("More")[1];
CardCollectionView cards = CardLists.getType(controller.getCardsIn(ZoneType.Battlefield), realType);
CardCollectionView yours = CardLists.getType(sourceController.getCardsIn(ZoneType.Battlefield), realType);
if (cards.size() <= yours.size()) {
return false;
}
} else if (type.startsWith("AtLeastAsMany")) {
String realType = type.split("AtLeastAsMany")[1]; String realType = type.split("AtLeastAsMany")[1];
CardCollectionView cards = CardLists.getType(controller.getCardsIn(ZoneType.Battlefield), realType); CardCollectionView cards = CardLists.getType(controller.getCardsIn(ZoneType.Battlefield), realType);
CardCollectionView yours = CardLists.getType(sourceController.getCardsIn(ZoneType.Battlefield), realType); CardCollectionView yours = CardLists.getType(sourceController.getCardsIn(ZoneType.Battlefield), realType);