Skip to content

Commit cf7abc0

Browse files
The Landlord Fixes
-Fixed The landlord not setting sell value of affected jokers to the correct amount -Made The Landlord Compatible with Obsidian Orb -Changed timing of effect to before cards are scored
1 parent 34773de commit cf7abc0

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

items/blind.lua

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -931,25 +931,22 @@ local landlord = {
931931
atlas = "blinds_two",
932932
order = 26,
933933
boss_colour = HEX("c89f13"),
934-
calculate = function(self, blind, context)
935-
if context.after and not G.GAME.blind.disabled then
936-
local jokers = {}
937-
for i, v in pairs(G.jokers.cards) do
938-
if not v.ability.rental then
939-
jokers[#jokers + 1] = v
940-
end
941-
end
942-
if #jokers > 0 then
943-
G.E_MANAGER:add_event(Event({
944-
func = function()
945-
local joker = pseudorandom_element(jokers, pseudoseed("cry_landlord"))
946-
joker.ability.rental = true
947-
joker:juice_up()
948-
return true
949-
end,
950-
}))
934+
debuff_hand = function(self, cards, hand, handname, check)
935+
G.GAME.blind.triggered = false
936+
local jokers = {}
937+
for i, v in pairs(G.jokers.cards) do
938+
if not v.ability.rental then
939+
jokers[#jokers + 1] = v
951940
end
941+
end
942+
if #jokers > 0 then
952943
G.GAME.blind.triggered = true
944+
if not check then
945+
local joker = pseudorandom_element(jokers, pseudoseed("cry_landlord"))
946+
joker:set_rental(true)
947+
joker:juice_up()
948+
G.GAME.blind:wiggle()
949+
end
953950
end
954951
end,
955952
}

0 commit comments

Comments
 (0)