From 34bb52471e5eccbdaf149155b3763b9903333bef Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Tue, 28 May 2024 22:40:07 -0500 Subject: [PATCH] Fixing backwards logic for ResistanceLessThanFilter --- .../src/main/resources/cards/official/set11/set11-Shire.hjson | 4 ++-- .../lotro/cards/build/field/effect/filter/FilterFactory.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set11/set11-Shire.hjson b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set11/set11-Shire.hjson index a7e1c980b..ec9744912 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set11/set11-Shire.hjson +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set11/set11-Shire.hjson @@ -492,12 +492,12 @@ } { type: canSpot - filter: unbound,companion,resistanceLessThanFilter(self) + filter: unbound, companion, InSkirmish, resistanceLessThanFilter(self) } ] effect: { type: replaceInSkirmish - filter: unbound,companion,resistanceLessThanFilter(self) + filter: unbound, companion, InSkirmish, resistanceLessThanFilter(self) with: self } } diff --git a/gemp-lotr/gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/field/effect/filter/FilterFactory.java b/gemp-lotr/gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/field/effect/filter/FilterFactory.java index b5bf8c452..e9247d851 100644 --- a/gemp-lotr/gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/field/effect/filter/FilterFactory.java +++ b/gemp-lotr/gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/field/effect/filter/FilterFactory.java @@ -540,7 +540,7 @@ public class FilterFactory { @Override public boolean accepts(LotroGame game, PhysicalCard physicalCard) { int resistance = game.getModifiersQuerying().getResistance(game, physicalCard); - return Filters.countActive(game, filterable, Filters.maxResistance(resistance - 1)) > 0; + return Filters.countActive(game, filterable, Filters.minResistance(resistance + 1)) > 0; } }; };