mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
support for archaeomancers_map.txt
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user