mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
parent
2969ba58be
commit
83fdee7ec9
1 changed files with 0 additions and 27 deletions
|
|
@ -1,27 +0,0 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
// @author jeffwadsworth
|
||||
|
||||
public class SourceHasAnyCountersCondition implements Predicate<Permanent> {
|
||||
|
||||
final int count;
|
||||
|
||||
public SourceHasAnyCountersCondition(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Permanent input, Game game) {
|
||||
return input.getCounters(game).values().stream().anyMatch(counter -> counter.getCount() >= count);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "any counter";
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue