Use nodes directly instead of finding them

This commit is contained in:
Emik 2026-10-14 18:22:43 +02:00
parent 3119a8561d
commit 4a922f8d0d
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 5 additions and 8 deletions

View file

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

View file

@ -232,24 +232,21 @@ blind {
boss = {min = 3}, boss = {min = 3},
boss_colour = HEX "102a41ff", boss_colour = HEX "102a41ff",
pronouns = "it_its", pronouns = "it_its",
defeat = function(self) defeat = function()
self.cards():where "Roland_blizzard":each(set_freeze()) f(G.I.CARD):where "Roland_blizzard":each(set_freeze())
G.GAME.blind.disabled = true G.GAME.blind.disabled = true
end, end,
disable = function(self) disable = function(self)
self:defeat() self:defeat()
end, end,
calculate = function(self, b, context) calculate = function(_, b, context)
return not b.disabled and return not b.disabled and
context.hand_drawn and context.hand_drawn and
self.cards() f(G.I.CARD)
:where("Roland_blizzard", false) :where("Roland_blizzard", false)
:where("facing", "front") :where("facing", "front")
:each(set_freeze(true)) or nil :each(set_freeze(true)) or nil
end, end,
cards = function()
return f(G):where(getmetatable, CardArea):flatmap("cards", ipairs)
end,
} }
blind { blind {