Fixed Collective Voyage giving players all basic lands when 0 total mana was paid. Closes #9377

This commit is contained in:
PurpleCrowbar 2022-08-22 04:02:41 +01:00
parent 10f1e01ea7
commit ddf131570d

View file

@ -75,7 +75,7 @@ class CollectiveVoyageEffect extends OneShotEffect {
}
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
Player player = game.getPlayer(playerId);
if (player != null) {
if (player != null && xSum != 0) {
TargetCardInLibrary target = new TargetCardInLibrary(0, xSum, StaticFilters.FILTER_CARD_BASIC_LAND);
if (player.searchLibrary(target, source, game)) {
toBattlefield.addAll(new CardsImpl(target.getTargets()).getCards(game));