Decheese The Nimble

This commit is contained in:
Emik 2026-01-28 05:20:25 +01:00
parent 13b9289bbf
commit 29888941f0
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 7 additions and 6 deletions

View file

@ -6,7 +6,7 @@
"author": [
"Emik"
],
"version": "1.5.0",
"version": "1.5.1",
"badge_colour": "8BE9FD",
"main_file": "src/main.lua",
"badge_text_colour": "44475A",

View file

@ -86,6 +86,10 @@ SMODS.Blind {
end,
drawn_to_hand = function(self)
local function force_hand()
if G.STATE ~= G.STATES.SELECTING_HAND or G.CONTROLLER.locked or (G.GAME.STOP_USE and G.GAME.STOP_USE > 0) then
return false
end
for i, v in ipairs(G.hand.cards) do
if i > 5 then
break
@ -100,11 +104,7 @@ SMODS.Blind {
if not self.disabled then
self.disabled = true
G.E_MANAGER:add_event(Event({
delay = 1,
trigger = "after",
func = force_hand,
}))
G.E_MANAGER:add_event(Event({func = force_hand, blocking = false}))
end
end,
set_blind = function(self)

View file

@ -53,6 +53,7 @@ Balatest.TestPlay {
end)
Balatest.wait_for_input()
Balatest.wait()
end,
assert = function()
Balatest.assert_chips(2720)