Merge pull request #5 from MarcinSc/master

Bringing fork up to date
This commit is contained in:
PhallenCassidy
2020-03-30 13:32:54 -04:00
committed by GitHub
2 changed files with 21 additions and 8 deletions

View File

@@ -206,14 +206,26 @@
"memorize": "cardsInHand"
},
{
"type": "discardFromHand",
"hand": "shadowPlayer",
"player": "shadowPlayer",
"forced": true,
"count": {
"type": "forEachMatchingInMemory",
"memory": "cardsInHand",
"filter": "orc"
"type": "conditional",
"condition": {
"type": "isMore",
"firstNumber": {
"type": "forEachMatchingInMemory",
"memory": "cardsInHand",
"filter": "orc"
},
"secondNumber": 0
},
"effect": {
"type": "discardFromHand",
"hand": "shadowPlayer",
"player": "shadowPlayer",
"forced": true,
"count": {
"type": "forEachMatchingInMemory",
"memory": "cardsInHand",
"filter": "orc"
}
}
}
]

View File

@@ -35,6 +35,7 @@ public class FilterFactory {
simpleFilters.put("unique", (actionContext) -> Filters.unique);
simpleFilters.put("bearer", (actionContext -> Filters.hasAttached(actionContext.getSource())));
simpleFilters.put("character", (actionContext) -> Filters.character);
simpleFilters.put("mounted", (actionContext) -> Filters.mounted);
simpleFilters.put("weapon", (actionContext) -> Filters.weapon);
simpleFilters.put("wounded", (actionContext) -> Filters.wounded);
simpleFilters.put("unwounded", (actionContext) -> Filters.unwounded);