mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
deck: fixed that clipboard import can choose wrong promo card (close #7666)
This commit is contained in:
parent
2e6f26e589
commit
b06682797c
14 changed files with 69 additions and 75 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue