Make bulk use very fast

This commit is contained in:
Emik 2026-07-27 20:23:21 +02:00
parent 4fda3af9c0
commit dced0cc3ca
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 5 additions and 3 deletions

View file

@ -3,7 +3,7 @@
"id": "Roland",
"name": "Roland",
"prefix": "Roland",
"version": "2.9.83",
"version": "2.9.84",
"badge_colour": "8BE9FD",
"display_name": "Roland",
"main_file": "src/main.lua",

View file

@ -50,17 +50,19 @@ spectral {
options = f(G.P_SEALS):keys():where(f.nq "Roland_glass"):values():table(),
}
q {
local _ = not card.Roland_immediate and q {
delay = 0.5,
trigger = "after",
func = function()
v:set_seal(seal, nil, true)
end,
}
} or v:set_seal(seal, true, true)
end)
end,
bulk_use = function(self, card, area, copier, number)
card.Roland_immediate = true
f(number):map(f.const(self)):each(f.call("use", card, area, copier))
card.Roland_immediate = nil
end,
}