mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
[SNC] fixed Ballroom Brawlers targeting restriction (fixes #8906)
This commit is contained in:
parent
56cc0e25ef
commit
6aa793d53d
4 changed files with 12 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue