From 6eead24f0ab1052afb9720c9fc1253596bc1dbda Mon Sep 17 00:00:00 2001 From: spjspj Date: Wed, 28 Sep 2016 01:09:54 +1000 Subject: [PATCH] spjspj - Fix Maintenance Droid --- .../mage/sets/starwars/MaintenanceDroid.java | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/Mage.Sets/src/mage/sets/starwars/MaintenanceDroid.java b/Mage.Sets/src/mage/sets/starwars/MaintenanceDroid.java index 56e2babc88..125900e234 100644 --- a/Mage.Sets/src/mage/sets/starwars/MaintenanceDroid.java +++ b/Mage.Sets/src/mage/sets/starwars/MaintenanceDroid.java @@ -48,6 +48,7 @@ import mage.constants.Zone; import mage.counters.CounterType; import mage.filter.FilterCard; import mage.filter.predicate.Predicate; +import mage.filter.predicate.permanent.CounterPredicate; import mage.game.Game; import mage.players.Player; import mage.target.common.TargetCardInYourGraveyard; @@ -142,23 +143,4 @@ class MaintenanceDroidEffect extends OneShotEffect { return false; } -} - -class CounterPredicate implements Predicate { - - private final CounterType counter; - - public CounterPredicate(CounterType counter) { - this.counter = counter; - } - - @Override - public boolean apply(MageObject input, Game game) { - return game.getCard(input.getId()).getCounters(game).getCount(counter) > 0; - } - - @Override - public String toString() { - return "CounterType(" + counter.getName() + ')'; - } -} +} \ No newline at end of file