- Fixed CounterPredicate() class.

This commit is contained in:
Jeff 2015-03-08 12:30:15 -05:00
parent ebae1b9c17
commit 892e1fba92

View file

@ -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