Skip to content

Commit 0807d4c

Browse files
committed
Fix shatter interactions
1 parent 68af827 commit 0807d4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lovely/enhancement.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ match_indent = true
257257
target = "card.lua"
258258
pattern = "if card.ability.name == 'Glass Card' then"
259259
position = "at"
260-
payload = "if SMODS.has_enhancement(card, 'm_glass') then"
260+
payload = "if SMODS.shatters(card) then"
261261
match_indent = true
262262

263263
[[patches]]
264264
[patches.pattern]
265265
target = "functions/state_events.lua"
266266
pattern = "if G.hand.highlighted[i].ability.name == 'Glass Card' then"
267267
position = "at"
268-
payload = "if SMODS.has_enhancement(G.hand.highlighted[i], 'm_glass') then"
268+
payload = "if SMODS.shatters(G.hand.highlighted[i]) then"
269269
match_indent = true
270270

271271
[[patches]]
@@ -281,7 +281,7 @@ match_indent = true
281281
target = "functions/state_events.lua"
282282
pattern = "if cards_destroyed[i].ability.name == 'Glass Card' then"
283283
position = "at"
284-
payload = "if SMODS.has_enhancement(cards_destroyed[i], 'm_glass') then"
284+
payload = "if cards_destroyed[i].shattered then"
285285
match_indent = true
286286

287287
# Prevent blue seals from applying on quantum enhancement calc

version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return "1.0.0~ALPHA-1416a-STEAMODDED"
1+
return "1.0.0~ALPHA-1418a-STEAMODDED"

0 commit comments

Comments
 (0)