@@ -18,7 +18,7 @@ function loc_colour(_c, _default)
1818end
1919
2020-- More advanced version of find joker for things that need to find very specific things
21- function advanced_find_joker (name , rarity , edition , ability , non_debuff )
21+ function advanced_find_joker (name , rarity , edition , ability , non_debuff , area )
2222 local jokers = {}
2323 if not G .jokers or not G .jokers .cards then
2424 return {}
@@ -54,6 +54,7 @@ function advanced_find_joker(name, rarity, edition, ability, non_debuff)
5454 if filter == 0 then
5555 return {}
5656 end
57+ if not area or area == " j" then
5758 for k , v in pairs (G .jokers .cards ) do
5859 if v and type (v ) == " table" and (non_debuff or not v .debuff ) then
5960 local check = 0
@@ -93,6 +94,8 @@ function advanced_find_joker(name, rarity, edition, ability, non_debuff)
9394 end
9495 end
9596 end
97+ end
98+ if not area or area = " c" then
9699 for k , v in pairs (G .consumeables .cards ) do
97100 if v and type (v ) == " table" and (non_debuff or not v .debuff ) then
98101 local check = 0
@@ -124,6 +127,7 @@ function advanced_find_joker(name, rarity, edition, ability, non_debuff)
124127 end
125128 end
126129 end
130+ end
127131 return jokers
128132end
129133
0 commit comments