Revert "Fixing "filter -> select" in replaceInSkirmish effect"

This reverts commit 2089737fd1.
This commit is contained in:
Christian 'ketura' McCarty
2024-11-01 19:30:41 -05:00
parent 2089737fd1
commit 0ee0199850
11 changed files with 13 additions and 13 deletions

View File

@@ -216,7 +216,7 @@
effect: [
{
type: replaceInSkirmish
select: unbound,companion,not(name(Gimli))
filter: unbound,companion,not(name(Gimli))
with: choose(name(Gimli))
}
]

View File

@@ -206,7 +206,7 @@
effect: [
{
type: replaceInSkirmish
select: unbound,companion,not(name(Gandalf))
filter: unbound,companion,not(name(Gandalf))
with: choose(name(Gandalf))
}
]

View File

@@ -100,7 +100,7 @@
effect: [
{
type: replaceInSkirmish
select: companion,not(ringBearer)
filter: companion,not(ringBearer)
with: memory(exertedHobbit)
}
]

View File

@@ -501,7 +501,7 @@
]
effect: {
type: replaceInSkirmish
select: unbound, companion, InSkirmish, resistanceLessThanFilter(self)
filter: unbound, companion, InSkirmish, resistanceLessThanFilter(self)
with: self
}
}

View File

@@ -172,7 +172,7 @@
}
{
type: replaceInSkirmish
select: memory(anotherCompanion)
filter: memory(anotherCompanion)
with: self
}
]

View File

@@ -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)
}
}

View File

@@ -541,7 +541,7 @@
}
effect: {
type: replaceInSkirmish
select: ringBound,companion,inSkirmishAgainst(minion)
filter: ringBound,companion,inSkirmishAgainst(minion)
with: self
}
}

View File

@@ -164,7 +164,7 @@
}
effect: {
type: replaceInSkirmish
select: minion,inSkirmishAgainst(companion)
filter: minion,inSkirmishAgainst(companion)
with: choose(name(Gollum))
}
}

View File

@@ -93,7 +93,7 @@
effect: [
{
type: replaceInSkirmish
select: dwarf,not(name(Gimli))
filter: dwarf,not(name(Gimli))
with: memory(exertedGimli)
}
{

View File

@@ -933,7 +933,7 @@
effect: [
{
type: replaceInSkirmish
select: unbound,companion,not(name(Gandalf))
filter: unbound,companion,not(name(Gandalf))
with: memory(gandalf)
}
{

View File

@@ -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);