Module:Luacard2: Difference between revisions

From Archon Arcana - The KeyForge Wiki
Module:Luacard2
(Module:Luacard2)
(Module:Luacard2)
Line 279: Line 279:
local card_names = related_row['Cards']
local card_names = related_row['Cards']
for name, _ in string.gmatch(card_names, '[^•]+') do
for name, _ in string.gmatch(card_names, '[^•]+') do
if name~=vars.cardname_e then
if name~=cardname then
local card_results = cargo_results(
local card_results = cargo_results(
'CardData',
'CardData',
'Name,Image,Artist,Text,FlavorText,Type,Rarity,House,Traits,Power,Armor,Amber',
'Name,Image,Artist,Text,FlavorText,Type,Rarity,House,Traits,Power,Armor,Amber',
{
{
where='CardData.Name="'..cardname..'"'
where='CardData.Name="'..name..'"'
})
})
cards[#cards+1] = card_results[1]
cards[#cards+1] = card_results[1]