Skip to content

Commit

Permalink
Fix shatter interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Eremel committed Feb 18, 2025
1 parent 68af827 commit 0807d4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lovely/enhancement.toml
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,15 @@ match_indent = true
target = "card.lua"
pattern = "if card.ability.name == 'Glass Card' then"
position = "at"
payload = "if SMODS.has_enhancement(card, 'm_glass') then"
payload = "if SMODS.shatters(card) then"
match_indent = true

[[patches]]
[patches.pattern]
target = "functions/state_events.lua"
pattern = "if G.hand.highlighted[i].ability.name == 'Glass Card' then"
position = "at"
payload = "if SMODS.has_enhancement(G.hand.highlighted[i], 'm_glass') then"
payload = "if SMODS.shatters(G.hand.highlighted[i]) then"
match_indent = true

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

# Prevent blue seals from applying on quantum enhancement calc
Expand Down
2 changes: 1 addition & 1 deletion version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return "1.0.0~ALPHA-1416a-STEAMODDED"
return "1.0.0~ALPHA-1418a-STEAMODDED"

0 comments on commit 0807d4c

Please sign in to comment.