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