mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
- Little fix Noxious Vapors
This commit is contained in:
parent
11d449a242
commit
781462278c
1 changed files with 3 additions and 2 deletions
|
@ -16,10 +16,11 @@ import mage.filter.predicate.mageobject.ColorPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.common.TargetCardInHand;
|
import mage.target.common.TargetCardInHand;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
import mage.MageItem;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author L_J
|
* @author L_J
|
||||||
|
@ -87,7 +88,7 @@ class NoxiousVaporsEffect extends OneShotEffect {
|
||||||
chooseCardForColor(ObjectColor.GREEN, chosenCards, player, game, source);
|
chooseCardForColor(ObjectColor.GREEN, chosenCards, player, game, source);
|
||||||
chosenCards.addAll(player.getHand().getCards(StaticFilters.FILTER_CARD_LAND, game));
|
chosenCards.addAll(player.getHand().getCards(StaticFilters.FILTER_CARD_LAND, game));
|
||||||
Cards cards = player.getHand().copy();
|
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);
|
player.discard(cards, source, game);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue