mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Curfew - Fix targeting/protection issue
This commit is contained in:
parent
9c0f1c8db0
commit
1cc434c6bd
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue