made a util function more generic because why not

This commit is contained in:
Evan Kranzler 2021-08-21 08:56:51 -04:00
parent 14838e670a
commit b9550a7387
3 changed files with 7 additions and 8 deletions

View file

@ -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;
}