forked from External/mage
made a util function more generic because why not
This commit is contained in:
parent
14838e670a
commit
b9550a7387
3 changed files with 7 additions and 8 deletions
|
|
@ -2716,7 +2716,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
.stream()
|
||||
.filter(card -> filter.match(card, source.getSourceId(), getId(), game))
|
||||
.collect(Collectors.toSet());
|
||||
Card card = RandomUtil.randomFromSet(cards);
|
||||
Card card = RandomUtil.randomFromCollection(cards);
|
||||
if (card == null) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue