26 lines
689 B
TOML
26 lines
689 B
TOML
[manifest]
|
|
version = "1.0.0"
|
|
dump_lua = true
|
|
priority = -5
|
|
|
|
# Add card_added context
|
|
[[patches]]
|
|
[patches.pattern]
|
|
target = "card.lua"
|
|
pattern = '''if G.GAME.blind and G.GAME.blind.in_blind then G.E_MANAGER:add_event(Event({ func = function() G.GAME.blind:set_blind(nil, true, nil); return true end })) end'''
|
|
position = "after"
|
|
match_indent = true
|
|
payload = '''
|
|
if not from_debuff and G.hand then
|
|
local is_playing_card = self.ability.set == 'Default' or self.ability.set == 'Enhanced'
|
|
|
|
-- TARGET: calculate card_added
|
|
|
|
if not is_playing_card then
|
|
SMODS.calculate_context({card_added = true, card = self})
|
|
SMODS.enh_cache:clear()
|
|
end
|
|
end
|
|
'''
|
|
times = 1
|