Use hook
This commit is contained in:
parent
73a7fa0db3
commit
85ee75541b
2 changed files with 10 additions and 1 deletions
|
|
@ -17,5 +17,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.6.14"
|
"version": "1.6.15"
|
||||||
}
|
}
|
||||||
|
|
@ -317,6 +317,15 @@ function Game:update(dt)
|
||||||
end
|
end
|
||||||
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 {
|
SMODS.Atlas {
|
||||||
px = 34,
|
px = 34,
|
||||||
py = 34,
|
py = 34,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue