From bb7f3d7b81f6a60920aafc6ca5db5cef9c62d204 Mon Sep 17 00:00:00 2001 From: Emik Date: Tue, 26 May 2026 15:09:10 +0200 Subject: [PATCH] Use hook --- manifest.json | 2 +- src/main.lua | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 1d63955..775fd09 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.6.14" + "version": "1.6.15" } \ No newline at end of file diff --git a/src/main.lua b/src/main.lua index 3652fc1..312b519 100644 --- a/src/main.lua +++ b/src/main.lua @@ -317,6 +317,15 @@ function Game:update(dt) end end +local orig_draw_card = draw_card + +---@diagnostic disable-next-line: lowercase-global +function draw_card(a, b, c, d, e, f, ...) + if type(f) ~= "table" and not f.shattered and not f.destroyed then + return orig_draw_card(a, b, c, d, e, f, ...) + end +end + SMODS.Atlas { px = 34, py = 34,