Spotting is faster

This commit is contained in:
marcin.sciesinski
2019-10-01 23:13:37 -07:00
parent 98a1c7d59c
commit 8fdbb38b19
3 changed files with 1 additions and 13 deletions

View File

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

View File

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

View File

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