@Override public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) { Player controller = game.getPlayer(source.getControllerId()); if (controller != null) { for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) { Player player = game.getPlayer(playerId); if (player != null) { ManaPool pool = player.getManaPool(); pool.addDoNotEmptyManaType(ManaType.WHITE); pool.addDoNotEmptyManaType(ManaType.GREEN); pool.addDoNotEmptyManaType(ManaType.BLUE); pool.addDoNotEmptyManaType(ManaType.RED); pool.addDoNotEmptyManaType(ManaType.BLACK); pool.addDoNotEmptyManaType(ManaType.COLORLESS); } } return true; } return false; }
@Override public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) { Player player = game.getPlayer(source.getControllerId()); if (player != null) { player.getManaPool().addDoNotEmptyManaType(ManaType.GREEN); } return false; }