magefree / magefree/mage

BUG: Deck editor not importing cards that begin with word "Land"

Open
#12,266 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

I'm not sure if this is intended behavior or a bug. While importing a decklist one of the cards was missing from deck. It turned out to be [[Land Tax]]. I tried to import the card specifically in a small decklist both from file and clipboard with some other cards. Again, it did not get added to the deck.

An example list where "Land Tax" is missing from the deck on import:
Deflecting Palm
Land Tax

If the list is written with a number before the card, it does get correctly imported. Example where it gets added below:
Deflecting Palm
1 Land Tax

The same thing occurs with other cards that start with the word "Land." Maybe the a line starting with the word "Land" in the decklist does not get detected as an individual card. All I can think if is maybe the program sees it as a "Land" category instead of a card, just like how decklists have "Mainboard" and "Sideboard" categories. Attached image of decklist with missing cards:

List
![list](https://github.com/magefree/mage/assets/96551990/581dc979-b9d0-4d04-bbf3-bc6a17728d53)

Deck missing cards starting with "Land"
![deck](https://github.com/magefree/mage/assets/96551990/752a90cd-cbde-4382-9c91-9afc8daffe32)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the bug in the deck editor by importing the two-line list with “Deflecting Palm” and “Land Tax” from a file and clipboard, then compare it with the version containing “1 Land Tax.” Done means cards whose names begin with “Land” import correctly without requiring a quantity prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.