deck: fixed that clipboard import can choose wrong promo card (close #7666)

This commit is contained in:
Oleg Agafonov 2025-08-10 23:59:19 +04:00
parent 2e6f26e589
commit b06682797c
14 changed files with 69 additions and 75 deletions

View file

@ -785,7 +785,7 @@ public final class SystemUtil {
* @return added cards list
*/
private static Set<Card> addNewCardsToGame(Game game, String cardName, String setCode, int amount, Player owner) {
CardInfo cardInfo = CardLookup.instance.lookupCardInfo(cardName, setCode).orElse(null);
CardInfo cardInfo = CardLookup.instance.lookupCardInfo(cardName, setCode, null);
if (cardInfo == null || amount <= 0) {
return null;
}