Spotting is faster
This commit is contained in:
@@ -1027,12 +1027,7 @@ public class Filters {
|
||||
public static final Filter roamingMinion = Filters.and(CardType.MINION, Keyword.ROAMING);
|
||||
public static final Filter mounted = Filters.or(Filters.hasAttached(PossessionClass.MOUNT), Keyword.MOUNTED);
|
||||
|
||||
public static Filter spottable = new Filter() {
|
||||
@Override
|
||||
public boolean accepts(LotroGame game, PhysicalCard physicalCard) {
|
||||
return game.getModifiersQuerying().canBeSpotted(game, physicalCard);
|
||||
}
|
||||
};
|
||||
public static Filter spottable = (game, physicalCard) -> true;
|
||||
|
||||
private static class FindFirstActiveCardInPlayVisitor implements PhysicalCardVisitor {
|
||||
private LotroGame game;
|
||||
|
||||
@@ -972,11 +972,6 @@ public class ModifiersLogic implements ModifiersEnvironment, ModifiersQuerying {
|
||||
return Side.FREE_PEOPLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeSpotted(LotroGame game, PhysicalCard card) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getNumberOfSpottableFPCultures(LotroGame game, String playerId) {
|
||||
Set<Culture> spottableCulturesBasedOnCards = new HashSet<Culture>();
|
||||
|
||||
@@ -138,8 +138,6 @@ public interface ModifiersQuerying {
|
||||
|
||||
public Side hasInitiative(LotroGame game);
|
||||
|
||||
public boolean canBeSpotted(LotroGame game, PhysicalCard card);
|
||||
|
||||
public int getNumberOfSpottableFPCultures(LotroGame game, String playerId);
|
||||
|
||||
public int getNumberOfSpottableShadowCultures(LotroGame game, String playerId);
|
||||
|
||||
Reference in New Issue
Block a user