MagicSetEditor2 icon indicating copy to clipboard operation
MagicSetEditor2 copied to clipboard

[might be a .mse-game issue] The last parameter in a keyword doesn't atom-ize words

Open CajunAvenger opened this issue 4 years ago • 2 comments

Typing CARDNAME into the final parameter of a keyword doesn't convert it into an atom (and so leaves it as "CARDNAME" instead of the card's name). If you type CARDNAME first, then add the keyword match before it, it will stay an atom and display the card name.

Changing the order of the text_filter so that the CARDNAME and LEGENDNAME atoms are created and filled in before expand_keywords is run does seem to fix this, so it may just need to be a change there, provided nothing strange would happen by passing that text to expand_keywords?

CajunAvenger avatar Sep 27 '20 18:09 CajunAvenger

Do you have example? I can't reproduce this with Equip CARDNAME. But maybe I am using a different version of the magic templates.

twanvl avatar Oct 03 '20 12:10 twanvl

An example is using CARDNAME as the parameter for Protection. That (on my version) is Protection from <name>. Here's an example, the first one is typed as Protection from ~ or Protection from CARDNAME, the second has the CARDNAME done first, then Protection from is typed in front of it.

(edit) huh the atom's being a bit weird in the reminder text, not sure what's causing that

CajunAvenger avatar Oct 04 '20 03:10 CajunAvenger