Skip to content

Commit 417c95d

Browse files
authored
refix unfixed bugfix (aka error error)
1 parent aa30bba commit 417c95d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

items/epic.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,9 @@ local error_joker = {
391391
eternal_compat = false,
392392
atlas = "atlasepic",
393393
loc_vars = function(self, info_queue, center)
394-
if safe_get(G.GAME, "pseudorandom") and G.STAGE == G.STAGES.RUN then
395-
cry_error_msgs[#cry_error_msgs].string = "%%" .. (pcall(predict_card_for_shop) or "J6")
394+
local ok, ret = pcall(predict_card_for_shop)
395+
if safe_get(G.GAME, "pseudorandom") and G.STAGE == G.STAGES.RUN and ok then
396+
cry_error_msgs[#cry_error_msgs].string = "%%" .. ret
396397
else
397398
cry_error_msgs[#cry_error_msgs].string = "%%J6"
398399
end

0 commit comments

Comments
 (0)