mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Fixed CounterPredicate() class.
This commit is contained in:
parent
ebae1b9c17
commit
892e1fba92
1 changed files with 5 additions and 5 deletions
|
@ -27,16 +27,16 @@
|
||||||
*/
|
*/
|
||||||
package mage.filter.predicate.permanent;
|
package mage.filter.predicate.permanent;
|
||||||
|
|
||||||
import mage.cards.Card;
|
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.filter.predicate.Predicate;
|
import mage.filter.predicate.Predicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
import mage.game.permanent.Permanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author jeff
|
* @author jeffwadsworth
|
||||||
*/
|
*/
|
||||||
public class CounterPredicate implements Predicate<Card> {
|
public class CounterPredicate implements Predicate<Permanent> {
|
||||||
|
|
||||||
private final CounterType counter;
|
private final CounterType counter;
|
||||||
|
|
||||||
|
@ -45,8 +45,8 @@ public class CounterPredicate implements Predicate<Card> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Card input, Game game) {
|
public boolean apply(Permanent input, Game game) {
|
||||||
return input.getCounters(game).containsKey(counter);
|
return input.getCounters().containsKey(counter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue