mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixed export template grouping yet again
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@755 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -148,7 +148,11 @@ script:
|
||||
}</ul>"
|
||||
}
|
||||
write_group := {
|
||||
cards := filter_list(set.cards, filter: { contains(color_of_card(card:input), match:code) } )
|
||||
cards := filter_list(set.cards, filter:
|
||||
if code == "L"
|
||||
then { contains(color_of_card(card:input), match:"L") }
|
||||
else { color_of_card(card:input) == code }
|
||||
)
|
||||
count := number_of_items(in:cards)
|
||||
if count > 0 then
|
||||
"<h2>{title} ({count} {if count == 1 then "card" else "cards"})</h2>" +
|
||||
|
||||
Reference in New Issue
Block a user