80,735
edits
(Module:Luacard2) |
(Module:Luacard2) |
||
Line 379: | Line 379: | ||
local ignore_cards_set = relatedquery(vars.cardname_e,"AND Type='ignore'") | local ignore_cards_set = relatedquery(vars.cardname_e,"AND Type='ignore'") | ||
local ignore_card_table = {} | local ignore_card_table = {} | ||
for i=1, #ignore_cards_set do | if #ignore_cards_set > 0 then | ||
for i=1, #ignore_cards_set do | |||
ignore_card_table[ignore_cards_set[i]["Name"]] = true | |||
end | |||
end | end | ||
local related_cards_set = relatedquery(vars.cardname_e,"AND Type!='ignore'") | local related_cards_set = relatedquery(vars.cardname_e,"AND Type!='ignore'") |