forked from External/mage
fix test failure
This commit is contained in:
parent
f0138645c7
commit
2e8603d26a
1 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue