[SNC] fixed Ballroom Brawlers targeting restriction (fixes #8906)

This commit is contained in:
Evan Kranzler 2022-05-11 19:09:27 -04:00
parent 56cc0e25ef
commit 6aa793d53d
4 changed files with 12 additions and 18 deletions

View file

@ -1,4 +1,3 @@
package mage.filter.predicate.permanent;
import mage.constants.SubType;
@ -8,20 +7,21 @@ import mage.game.Game;
import mage.game.permanent.Permanent;
/**
*
* @author KholdFuzion
*/
public class ControllerControlsIslandPredicate implements Predicate<Permanent> {
public enum ControllerControlsIslandPredicate implements Predicate<Permanent> {
instance;
private static final FilterLandPermanent filter = new FilterLandPermanent("Island");
public static final FilterLandPermanent filter = new FilterLandPermanent("Island");
static {
filter.add(SubType.ISLAND.getPredicate());
}
@Override
public boolean apply(Permanent input, Game game) {
return (game.getBattlefield().countAll(filter, input.getControllerId(), game) > 0);
return game.getBattlefield().countAll(filter, input.getControllerId(), game) > 0;
}
@Override