Merge pull request #4280 from skeate/master

Curfew - Fix targeting/protection issue
This commit is contained in:
LevelX2 2017-12-26 10:33:37 +01:00 committed by GitHub
commit 3a8afb9418
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<Permanent> liste = game.getBattlefield().getActivePermanents(new FilterControlledCreaturePermanent(), playerId, game);
FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();
TargetControlledCreaturePermanent target = new TargetControlledCreaturePermanent(1, 1, filter, true);
List<Permanent> liste = game.getBattlefield().getActivePermanents(filter, playerId, game);
if(!liste.isEmpty()){
player.choose(Outcome.ReturnToHand, target, source.getSourceId(), game);