Skip to content

Commit ad9b4cd

Browse files
Fix Interaction with Disabled Cryptid Poker hands
1 parent d928936 commit ad9b4cd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

items/spectral.lua

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,16 @@ local white_hole = {
3535
for k, v in ipairs(G.handlist) do
3636
if to_big(G.GAME.hands[v].level) > to_big(1) then
3737
local this_removed_levels = G.GAME.hands[v].level - 1
38-
removed_levels = removed_levels + this_removed_levels
39-
if v ~= _hand or not modest then
40-
level_up_hand(used_consumable, v, true, -this_removed_levels)
38+
if
39+
-- Due to how these poker hands are loaded they still techically exist even if Poker Hand Stuff is disabled
40+
-- Because they still exist, While Hole needs to ignore levels from these if disabled (via Black Hole, Planet.lua, etc...)
41+
(v ~= "cry_Bulwark" and v ~= "cry_Clusterfuck" and v ~= "cry_UltPair" and v ~= "cry_WholeDeck")
42+
or cry_card_enabled("set_cry_poker_hand_stuff") == true
43+
then
44+
if v ~= _hand or not modest then
45+
removed_levels = removed_levels + this_removed_levels
46+
level_up_hand(used_consumable, v, true, -this_removed_levels)
47+
end
4148
end
4249
end
4350
end

0 commit comments

Comments
 (0)