fix test failure

This commit is contained in:
theelk801 2025-06-09 12:43:48 -04:00 committed by Failure
parent f0138645c7
commit 2e8603d26a

View file

@ -11,7 +11,6 @@ import java.util.Optional;
* Created by glerman on 20/6/15. * Created by glerman on 20/6/15.
*/ */
public enum LastTimeCounterRemovedCondition implements Condition { public enum LastTimeCounterRemovedCondition implements Condition {
instance; instance;
@Override @Override
@ -19,7 +18,7 @@ public enum LastTimeCounterRemovedCondition implements Condition {
return Optional return Optional
.ofNullable(source.getSourcePermanentOrLKI(game)) .ofNullable(source.getSourcePermanentOrLKI(game))
.map(permanent -> permanent.getCounters(game).getCount(CounterType.TIME)) .map(permanent -> permanent.getCounters(game).getCount(CounterType.TIME))
.map(x -> x == 0) .filter(x -> x == 0)
.isPresent(); .isPresent();
} }