Skip to content

Commit 343438a

Browse files
authored
Merge pull request #78 from lord-ruby/dev
fix needs_use_button
2 parents d7c28c6 + fc9ae68 commit 343438a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/hooks.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ function G.UIDEF.use_and_sell_buttons(card)
12331233
}},
12341234
}}
12351235
end
1236-
if Entropy.needs_use_button(card) and card.config.center.use and card.area == G.pack_cards and G.pack_cards and (Entropy.needs_pull_button(card) or (not SMODS.OPENED_BOOSTER or not SMODS.OPENED_BOOSTER.draw_hand and card.children.front)) and (card.ability.consumeable) then
1236+
if Entropy.needs_use_button(card) and card.area == G.pack_cards and G.pack_cards and (Entropy.needs_pull_button(card) or (not SMODS.OPENED_BOOSTER or not SMODS.OPENED_BOOSTER.draw_hand and card.children.front and (card.ability.consumeable))) then
12371237
return {
12381238
n = G.UIT.ROOT,
12391239
config = { padding = -0.1, colour = G.C.CLEAR },
@@ -1305,7 +1305,7 @@ function G.UIDEF.use_and_sell_buttons(card)
13051305
-- Betmma can't explain it, neither can I
13061306
},
13071307
}
1308-
elseif card.area == G.pack_cards and G.pack_cards and (Entropy.needs_pull_button(card) or (not SMODS.OPENED_BOOSTER or not SMODS.OPENED_BOOSTER.draw_hand and card.children.front)) and (card.ability.consumeable) then
1308+
elseif card.area == G.pack_cards and G.pack_cards and (Entropy.needs_pull_button(card) or (not SMODS.OPENED_BOOSTER or not SMODS.OPENED_BOOSTER.draw_hand and card.children.front and (card.ability.consumeable))) then
13091309
return {
13101310
n = G.UIT.ROOT,
13111311
config = { padding = -0.1, colour = G.C.CLEAR },

0 commit comments

Comments
 (0)