Skip to content

Commit 5512235

Browse files
Make Gateway require room
for consistency
1 parent b3c3b67 commit 5512235

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

items/exotic.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ local gateway = {
1717
order = 90,
1818
hidden = true, --default soul_set and soul_rate of 0.3% in spectral packs is used
1919
can_use = function(self, card)
20-
return true
20+
if (#SMODS.find_card("j_jen_saint") + #SMODS.find_card("j_jen_saint_attuned")) <= 0 then
21+
return #G.jokers.cards < G.jokers.config.card_limit
22+
else
23+
--Don't allow use if everything is eternal and there is no room
24+
return #Cryptid.advanced_find_joker(nil, nil, nil, { "eternal" }, true, "j") < G.jokers.config.card_limit
25+
end
2126
end,
2227
use = function(self, card, area, copier)
2328
if (#SMODS.find_card("j_jen_saint") + #SMODS.find_card("j_jen_saint_attuned")) <= 0 then

0 commit comments

Comments
 (0)