Renaming method to avoid confusion.
This commit is contained in:
@@ -54,7 +54,7 @@ public class Card1_001 extends AbstractAttachable {
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.RING_BEARER));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.RING_BOUND));
|
||||
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Card1_002 extends AbstractAttachable {
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.RING_BEARER));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.RING_BOUND));
|
||||
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -31,6 +31,6 @@ public class Card1_008 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new OverwhelmedByMultiplierModifier(self, Filters.isAttachedTo(self), 3);
|
||||
return new OverwhelmedByMultiplierModifier(self, Filters.hasAttached(self), 3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Card1_009 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 2);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -46,7 +46,7 @@ public class Card1_014 extends AbstractAttachableFPPossession {
|
||||
List<Modifier> modifiers = new LinkedList<Modifier>();
|
||||
modifiers.add(new StrengthModifier(null, null, 2));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -51,7 +51,7 @@ public class Card1_031 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new AbstractModifier(self, "Strength +2, if at Plains another +2", Filters.isAttachedTo(self), new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER}) {
|
||||
return new AbstractModifier(self, "Strength +2, if at Plains another +2", Filters.hasAttached(self), new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER}) {
|
||||
@Override
|
||||
public int getStrength(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard, int result) {
|
||||
return result + (modifiersQuerying.hasKeyword(gameState, gameState.getCurrentSite(), Keyword.PLAINS) ? 4 : 2);
|
||||
|
||||
@@ -40,7 +40,7 @@ public class Card1_033 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 1);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -31,6 +31,6 @@ public class Card1_041 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new KeywordModifier(self, Filters.isAttachedTo(self), Keyword.ARCHER);
|
||||
return new KeywordModifier(self, Filters.hasAttached(self), Keyword.ARCHER);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,6 +76,6 @@ public class Card1_047 extends AbstractAttachableFPPossession {
|
||||
modifiers.add(new StrengthModifier(null, null, 2));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class Card1_049 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new AbstractModifier(self, "Streng +1 for each Elf you can spot (limit +3)", Filters.isAttachedTo(self), new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER}) {
|
||||
return new AbstractModifier(self, "Streng +1 for each Elf you can spot (limit +3)", Filters.hasAttached(self), new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER}) {
|
||||
@Override
|
||||
public int getStrength(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard, int result) {
|
||||
int count = Math.min(3, Filters.countActive(gameState, modifiersQuerying, Filters.race(Race.ELF)));
|
||||
|
||||
@@ -54,6 +54,6 @@ public class Card1_066 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new VitalityModifier(self, Filters.isAttachedTo(self), 1);
|
||||
return new VitalityModifier(self, Filters.hasAttached(self), 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Card1_075 extends AbstractAttachableFPPossession {
|
||||
List<Modifier> modifiers = new LinkedList<Modifier>();
|
||||
modifiers.add(new StrengthModifier(null, null, 2));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Card1_090 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new KeywordModifier(self, Filters.isAttachedTo(self), Keyword.ARCHER);
|
||||
return new KeywordModifier(self, Filters.hasAttached(self), Keyword.ARCHER);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Card1_095 extends AbstractAttachableFPPossession {
|
||||
List<Modifier> modifiers = new LinkedList<Modifier>();
|
||||
modifiers.add(new StrengthModifier(null, null, 2));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -31,6 +31,6 @@ public class Card1_101 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new OverwhelmedByMultiplierModifier(self, Filters.isAttachedTo(self), 3);
|
||||
return new OverwhelmedByMultiplierModifier(self, Filters.hasAttached(self), 3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,6 @@ public class Card1_112 extends AbstractAttachableFPPossession {
|
||||
modifiers.add(new StrengthModifier(null, null, 2));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,6 @@ public class Card1_114 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new VitalityModifier(self, Filters.isAttachedTo(self), 1);
|
||||
return new VitalityModifier(self, Filters.hasAttached(self), 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public class Card1_160 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 2);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -41,6 +41,6 @@ public class Card1_166 extends AbstractAttachable {
|
||||
List<Modifier> modifiers = new LinkedList<Modifier>();
|
||||
modifiers.add(new StrengthModifier(null, null, 3));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class Card1_180 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 2);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -39,7 +39,7 @@ public class Card1_182 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 2);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -45,7 +45,7 @@ public class Card1_190 extends AbstractAttachable {
|
||||
modifiers.add(new StrengthModifier(null, null, 2));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -39,7 +39,7 @@ public class Card1_269 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 2);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -49,6 +49,6 @@ public class Card1_282 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), -1);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), -1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class Card1_283 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new AbstractModifier(self, "While at a sanctuary, bearer cannot heal.", Filters.isAttachedTo(self), new ModifierEffect[]{ModifierEffect.WOUND_MODIFIER}) {
|
||||
return new AbstractModifier(self, "While at a sanctuary, bearer cannot heal.", Filters.hasAttached(self), new ModifierEffect[]{ModifierEffect.WOUND_MODIFIER}) {
|
||||
@Override
|
||||
public boolean canBeHealed(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard card, boolean result) {
|
||||
if (modifiersQuerying.hasKeyword(gameState, gameState.getCurrentSite(), Keyword.SANCTUARY))
|
||||
|
||||
@@ -32,6 +32,6 @@ public class Card1_299 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 2);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ public class Card1_313 extends AbstractAttachableFPPossession {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 2);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 2);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Card1_314 extends AbstractAttachable {
|
||||
public Modifier getAlwaysOnEffect(final PhysicalCard self) {
|
||||
return new StrengthModifier(self,
|
||||
Filters.and(
|
||||
Filters.isAttachedTo(self),
|
||||
Filters.hasAttached(self),
|
||||
new Filter() {
|
||||
@Override
|
||||
public boolean accepts(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Card1_207 extends AbstractPermanent {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new AbstractModifier(self, "Burdens and wounds may not be removed from bearer.", Filters.isAttachedTo(self), new ModifierEffect[]{ModifierEffect.WOUND_MODIFIER}) {
|
||||
return new AbstractModifier(self, "Burdens and wounds may not be removed from bearer.", Filters.hasAttached(self), new ModifierEffect[]{ModifierEffect.WOUND_MODIFIER}) {
|
||||
@Override
|
||||
public boolean canBeHealed(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard card, boolean result) {
|
||||
return false;
|
||||
|
||||
@@ -40,7 +40,7 @@ public class Card1_208 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new AbstractModifier(self, "Strength +2, While at a Plains site, bearer is Strength +2", Filters.isAttachedTo(self), new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER}) {
|
||||
return new AbstractModifier(self, "Strength +2, While at a Plains site, bearer is Strength +2", Filters.hasAttached(self), new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER}) {
|
||||
@Override
|
||||
public int getStrength(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard, int result) {
|
||||
int bonus = (modifiersQuerying.hasKeyword(gameState, gameState.getCurrentSite(), Keyword.PLAINS)) ? 4 : 2;
|
||||
|
||||
@@ -35,7 +35,7 @@ public class Card1_216 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new StrengthModifier(self, Filters.isAttachedTo(self), 1);
|
||||
return new StrengthModifier(self, Filters.hasAttached(self), 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -33,7 +33,7 @@ public class Card1_218 extends AbstractAttachable {
|
||||
|
||||
@Override
|
||||
public Modifier getAlwaysOnEffect(PhysicalCard self) {
|
||||
return new AbstractModifier(self, "Strength +2, While you can spot 3 burdens, bearer is damage +1", Filters.isAttachedTo(self), new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER, ModifierEffect.KEYWORD_MODIFIER}) {
|
||||
return new AbstractModifier(self, "Strength +2, While you can spot 3 burdens, bearer is damage +1", Filters.hasAttached(self), new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER, ModifierEffect.KEYWORD_MODIFIER}) {
|
||||
@Override
|
||||
public int getStrength(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard, int result) {
|
||||
return result + 2;
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Card1_221 extends AbstractAttachable {
|
||||
List<Modifier> modifiers = new LinkedList<Modifier>();
|
||||
modifiers.add(new StrengthModifier(null, null, 3));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -47,7 +47,7 @@ public class Card1_225 extends AbstractAttachable {
|
||||
List<Modifier> modifiers = new LinkedList<Modifier>();
|
||||
modifiers.add(new StrengthModifier(null, null, 2));
|
||||
modifiers.add(new KeywordModifier(null, null, Keyword.DAMAGE));
|
||||
return new CompositeModifier(self, Filters.isAttachedTo(self), modifiers);
|
||||
return new CompositeModifier(self, Filters.hasAttached(self), modifiers);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -60,7 +60,7 @@ public class Card1_225 extends AbstractAttachable {
|
||||
if (skirmish != null
|
||||
&& skirmish.getShadowCharacters().contains(self.getAttachedTo())) {
|
||||
action.addEffect(
|
||||
new ChooseActiveCardEffect(playerId, "Choose possession borne by character he is skirmishing", Filters.type(CardType.POSSESSION), Filters.isAttachedTo(skirmish.getFellowshipCharacter())) {
|
||||
new ChooseActiveCardEffect(playerId, "Choose possession borne by character he is skirmishing", Filters.type(CardType.POSSESSION), Filters.hasAttached(skirmish.getFellowshipCharacter())) {
|
||||
@Override
|
||||
protected void cardSelected(PhysicalCard possession) {
|
||||
action.addEffect(
|
||||
|
||||
@@ -252,7 +252,7 @@ public class Filters {
|
||||
};
|
||||
}
|
||||
|
||||
public static Filter isAttachedTo(final PhysicalCard attachment) {
|
||||
public static Filter hasAttached(final PhysicalCard attachment) {
|
||||
return new Filter() {
|
||||
@Override
|
||||
public boolean accepts(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
|
||||
|
||||
Reference in New Issue
Block a user