From a57c20aa4f6cc6ed73b58a8b07a6494293377205 Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 24 Sep 2007 22:19:11 +0000 Subject: [PATCH] Fixed export template grouping yet again git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@755 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic-spoiler.mse-export-template/export-template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/magic-spoiler.mse-export-template/export-template b/data/magic-spoiler.mse-export-template/export-template index c24c5b5d..5eb30156 100644 --- a/data/magic-spoiler.mse-export-template/export-template +++ b/data/magic-spoiler.mse-export-template/export-template @@ -148,7 +148,11 @@ script: }" } 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 "

{title} ({count} {if count == 1 then "card" else "cards"})

" +