Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debuffed Consumable cards crash game during scoring #384

Closed
jumbocarrot0 opened this issue Jan 10, 2025 · 0 comments
Closed

Debuffed Consumable cards crash game during scoring #384

jumbocarrot0 opened this issue Jan 10, 2025 · 0 comments

Comments

@jumbocarrot0
Copy link
Contributor

The cause seems to be a BetterCalc patch for eval_card that returns a single table for non-joker debuffed cards (rather than returning two for any post triggers).

## eval_card()
# handle debuffed playing cards
[[patches]]
[patches.pattern]
target = "functions/common_events.lua"
pattern = '''
function eval_card(card, context)
    context = context or {}
    local ret = {}
'''
position = 'at'
match_indent = true
payload = '''
function eval_card(card, context)
    if card.ability.set ~= 'Joker' and card.debuff then return {} end
    context = context or {}
    local ret = {}
'''

Download for the crash log in the video

2025-01-10.13-27-11.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants