From 86d72b15c526f3cef8e8d2512fa397419a1ed64d Mon Sep 17 00:00:00 2001 From: Northmoc Date: Mon, 5 Apr 2021 23:05:56 -0400 Subject: [PATCH] support for archaeomancers_map.txt --- .../src/main/java/forge/game/card/CardProperty.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/card/CardProperty.java b/forge-game/src/main/java/forge/game/card/CardProperty.java index 724553d6831..7574e09b340 100644 --- a/forge-game/src/main/java/forge/game/card/CardProperty.java +++ b/forge-game/src/main/java/forge/game/card/CardProperty.java @@ -341,7 +341,14 @@ public class CardProperty { } } else if (property.startsWith("ControllerControls")) { 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]; CardCollectionView cards = CardLists.getType(controller.getCardsIn(ZoneType.Battlefield), realType); CardCollectionView yours = CardLists.getType(sourceController.getCardsIn(ZoneType.Battlefield), realType);