This commit is contained in:
CajunAvenger
2021-10-24 14:48:18 -05:00
parent 2ab036dc7b
commit 427188118d
5 changed files with 14 additions and 5 deletions

View File

@@ -33,6 +33,15 @@ card_is_wedge := {
color_string := card_color_to_letters(input)
if color_string == "WUR" or color_string == "WBR" or color_string == "WBG" or color_string == "UBG" or color_string == "URG" then true else false
}
list_colors := {
list := trim_colors(input)
cc := length(comma_count(list))
if cc == 1 then
list := replace(list, match:", ", replace:" and ")
if cc > 1 then
list := replace(list, match:", ", replace:", and ", in_context:"<match>[^ ]+$")
list
}
# A mana cost can contain both normal and guild mana
mana_filter := to_upper + {
if chosen(set.mana_cost_sorting, choice: "unsorted") then mana_unsort()