Skip to content

Commit 484661d

Browse files
authored
Merge pull request #726 from MrAranha/main
Fixed double-sided green seal cards crashing the game while trying to…
2 parents fec9e2b + 4be4bfa commit 484661d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lovely/misc.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,3 +671,17 @@ pattern = """limit = limit - 1 + (not card.debuff and card.edition and card.edit
671671
position = "at"
672672
payload = """limit = limit - 1 + (card.edition and card.edition.card_limit or 0)"""
673673
match_indent = true
674+
675+
676+
#This fixes a double-sided green seal cards crashing the game while trying to open "View deck" while flipped inside the random deck selection in a booster pack
677+
[[patches]]
678+
[patches.pattern]
679+
target = "functions/common_events.lua"
680+
pattern = "for k, v in pairs(other.ability.seal or {}) do"
681+
position = "at"
682+
payload = '''
683+
local safe_seal = type(other.ability.seal) == "table" and other.ability.seal or {}
684+
for k, v in pairs(safe_seal) do
685+
'''
686+
match_indent = true
687+

0 commit comments

Comments
 (0)