Fix hook
This commit is contained in:
parent
bb7f3d7b81
commit
69fc57c2a4
2 changed files with 2 additions and 2 deletions
|
|
@ -17,5 +17,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.6.15"
|
"version": "1.6.16"
|
||||||
}
|
}
|
||||||
|
|
@ -321,7 +321,7 @@ local orig_draw_card = draw_card
|
||||||
|
|
||||||
---@diagnostic disable-next-line: lowercase-global
|
---@diagnostic disable-next-line: lowercase-global
|
||||||
function draw_card(a, b, c, d, e, f, ...)
|
function draw_card(a, b, c, d, e, f, ...)
|
||||||
if type(f) ~= "table" and not f.shattered and not f.destroyed then
|
if type(f) ~= "table" or (not f.shattered and not f.destroyed) then
|
||||||
return orig_draw_card(a, b, c, d, e, f, ...)
|
return orig_draw_card(a, b, c, d, e, f, ...)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue