From 781462278cb06a666dbe3a5c1bb4a75aa86bad07 Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Tue, 9 Jun 2020 17:10:20 -0500 Subject: [PATCH] - Little fix Noxious Vapors --- Mage.Sets/src/mage/cards/n/NoxiousVapors.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/n/NoxiousVapors.java b/Mage.Sets/src/mage/cards/n/NoxiousVapors.java index e550c4c05e..1f5fdc483e 100644 --- a/Mage.Sets/src/mage/cards/n/NoxiousVapors.java +++ b/Mage.Sets/src/mage/cards/n/NoxiousVapors.java @@ -16,10 +16,11 @@ import mage.filter.predicate.mageobject.ColorPredicate; import mage.game.Game; import mage.players.Player; import mage.target.common.TargetCardInHand; - import java.util.HashSet; import java.util.Set; import java.util.UUID; +import java.util.stream.Collectors; +import mage.MageItem; /** * @author L_J @@ -87,7 +88,7 @@ class NoxiousVaporsEffect extends OneShotEffect { chooseCardForColor(ObjectColor.GREEN, chosenCards, player, game, source); chosenCards.addAll(player.getHand().getCards(StaticFilters.FILTER_CARD_LAND, game)); Cards cards = player.getHand().copy(); - cards.removeIf(chosenCards::contains); + cards.removeIf(chosenCards.stream().map(MageItem::getId).collect(Collectors.toSet())::contains); player.discard(cards, source, game); } return true;