mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Merge pull request #4280 from skeate/master
Curfew - Fix targeting/protection issue
This commit is contained in:
commit
3a8afb9418
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