Revert "Fixing "filter -> select" in replaceInSkirmish effect"
This reverts commit 2089737fd1.
This commit is contained in:
@@ -216,7 +216,7 @@
|
||||
effect: [
|
||||
{
|
||||
type: replaceInSkirmish
|
||||
select: unbound,companion,not(name(Gimli))
|
||||
filter: unbound,companion,not(name(Gimli))
|
||||
with: choose(name(Gimli))
|
||||
}
|
||||
]
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
effect: [
|
||||
{
|
||||
type: replaceInSkirmish
|
||||
select: unbound,companion,not(name(Gandalf))
|
||||
filter: unbound,companion,not(name(Gandalf))
|
||||
with: choose(name(Gandalf))
|
||||
}
|
||||
]
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
effect: [
|
||||
{
|
||||
type: replaceInSkirmish
|
||||
select: companion,not(ringBearer)
|
||||
filter: companion,not(ringBearer)
|
||||
with: memory(exertedHobbit)
|
||||
}
|
||||
]
|
||||
|
||||
@@ -501,7 +501,7 @@
|
||||
]
|
||||
effect: {
|
||||
type: replaceInSkirmish
|
||||
select: unbound, companion, InSkirmish, resistanceLessThanFilter(self)
|
||||
filter: unbound, companion, InSkirmish, resistanceLessThanFilter(self)
|
||||
with: self
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
}
|
||||
{
|
||||
type: replaceInSkirmish
|
||||
select: memory(anotherCompanion)
|
||||
filter: memory(anotherCompanion)
|
||||
with: self
|
||||
}
|
||||
]
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
}
|
||||
effect: {
|
||||
type: replaceInSkirmish
|
||||
select: unbound,hobbit
|
||||
filter: unbound,hobbit
|
||||
with: choose(name(Boromir))
|
||||
}
|
||||
}
|
||||
@@ -485,7 +485,7 @@
|
||||
}
|
||||
effect: {
|
||||
type: replaceInSkirmish
|
||||
select: unbound,companion,inSkirmishAgainst(minion)
|
||||
filter: unbound,companion,inSkirmishAgainst(minion)
|
||||
with: choose(culture(gondor),companion,notAssignedToSkirmish)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -541,7 +541,7 @@
|
||||
}
|
||||
effect: {
|
||||
type: replaceInSkirmish
|
||||
select: ringBound,companion,inSkirmishAgainst(minion)
|
||||
filter: ringBound,companion,inSkirmishAgainst(minion)
|
||||
with: self
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
}
|
||||
effect: {
|
||||
type: replaceInSkirmish
|
||||
select: minion,inSkirmishAgainst(companion)
|
||||
filter: minion,inSkirmishAgainst(companion)
|
||||
with: choose(name(Gollum))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
effect: [
|
||||
{
|
||||
type: replaceInSkirmish
|
||||
select: dwarf,not(name(Gimli))
|
||||
filter: dwarf,not(name(Gimli))
|
||||
with: memory(exertedGimli)
|
||||
}
|
||||
{
|
||||
|
||||
@@ -933,7 +933,7 @@
|
||||
effect: [
|
||||
{
|
||||
type: replaceInSkirmish
|
||||
select: unbound,companion,not(name(Gandalf))
|
||||
filter: unbound,companion,not(name(Gandalf))
|
||||
with: memory(gandalf)
|
||||
}
|
||||
{
|
||||
|
||||
@@ -18,9 +18,9 @@ import org.json.simple.JSONObject;
|
||||
public class ReplaceInSkirmish implements EffectAppenderProducer {
|
||||
@Override
|
||||
public EffectAppender createEffectAppender(JSONObject effectObject, CardGenerationEnvironment environment) throws InvalidCardDefinitionException {
|
||||
FieldUtils.validateAllowedFields(effectObject, "select", "with");
|
||||
FieldUtils.validateAllowedFields(effectObject, "filter", "with");
|
||||
|
||||
final String filter = FieldUtils.getString(effectObject.get("select"), "select");
|
||||
final String filter = FieldUtils.getString(effectObject.get("filter"), "filter");
|
||||
final String with = FieldUtils.getString(effectObject.get("with"), "with");
|
||||
|
||||
final FilterableSource filterableSource = environment.getFilterFactory().generateFilter(filter, environment);
|
||||
|
||||
Reference in New Issue
Block a user