1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-03 01:08:59 -09:00

Merge pull request from magefree/LeadershipVacuum

Fixed Leadership Vacuum
This commit is contained in:
Oleg Agafonov 2019-11-15 07:45:43 +01:00 committed by GitHub
commit 54008b384c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,9 +71,9 @@ class LeadershipVacuumEffect extends OneShotEffect {
if (player == null) {
return false;
}
return player.moveCards(game.getBattlefield()
.getAllActivePermanents(filter, source.getFirstTarget(), game)
.stream()
.collect(Collectors.toSet()), Zone.COMMAND, source, game);
return game.getBattlefield().getAllActivePermanents(filter, source.getFirstTarget(), game).stream()
.map(commander -> commander.moveToZone(Zone.COMMAND, source.getId(), game, true))
.reduce(true, Boolean::logicalAnd);
}
}