mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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;
|
||||
|
||||
import mage.cards.Card;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.predicate.Predicate;
|
||||
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;
|
||||
|
||||
|
@ -45,8 +45,8 @@ public class CounterPredicate implements Predicate<Card> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Card input, Game game) {
|
||||
return input.getCounters(game).containsKey(counter);
|
||||
public boolean apply(Permanent input, Game game) {
|
||||
return input.getCounters().containsKey(counter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue