From 1cc434c6bd69df2e96601b6c83d9bcd5526edf21 Mon Sep 17 00:00:00 2001 From: Jonathan Skeate Date: Sun, 24 Dec 2017 13:32:52 -0500 Subject: [PATCH] Curfew - Fix targeting/protection issue --- Mage.Sets/src/mage/cards/c/Curfew.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/c/Curfew.java b/Mage.Sets/src/mage/cards/c/Curfew.java index bfe79287b46..28c395b6283 100644 --- a/Mage.Sets/src/mage/cards/c/Curfew.java +++ b/Mage.Sets/src/mage/cards/c/Curfew.java @@ -79,8 +79,9 @@ class CurfewEffect extends OneShotEffect{ for (UUID playerId : game.getState().getPlayersInRange(source.getControllerId(), game)) { Player player = game.getPlayer(playerId); if (player != null) { - TargetControlledCreaturePermanent target = new TargetControlledCreaturePermanent(); - List liste = game.getBattlefield().getActivePermanents(new FilterControlledCreaturePermanent(), playerId, game); + FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent(); + TargetControlledCreaturePermanent target = new TargetControlledCreaturePermanent(1, 1, filter, true); + List liste = game.getBattlefield().getActivePermanents(filter, playerId, game); if(!liste.isEmpty()){ player.choose(Outcome.ReturnToHand, target, source.getSourceId(), game);