Commit 2998782c authored by twanvl's avatar twanvl

fixed: mana_sort_quild was copying tap/untap symbols

parent 6da75f0b
......@@ -23,10 +23,11 @@ init script:
# correctly sort a mana symbol (no guild mana)
mana_sort := sort_rule(order: "XYZI[0123456789]S(WUBRG)")
# correctly sort guild mana
mana_sort_guild := replace_rule(
match: "./.|././.|./././.|.[|]",
in_context: "(^|[^/])<match>($|[^/])",
replace: {sort_text(order:"in_place((WUBRG)")}
mana_sort_guild := sort_rule(order: "[XYZI01234567890SWUBRG/]") +
replace_rule(
match: "./.|././.|./././.|.[|]",
in_context: "(^|[^/])<match>($|[^/])",
replace: {sort_text(order:"in_place((WUBRG)")}
)
mana_has_guild := match_rule(match: "[/|]") # Is there guild or half mana in the input?
# A mana cost can contain both normal and guild mana
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment