Prevent nil dereference from Freeze Tag

This commit is contained in:
Emik 2026-06-05 01:37:38 +02:00
parent 57d559cd5b
commit 31d9e000f5
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
"id": "Roland", "id": "Roland",
"name": "Roland", "name": "Roland",
"prefix": "Roland", "prefix": "Roland",
"version": "2.8.8", "version": "2.8.9",
"badge_colour": "8BE9FD", "badge_colour": "8BE9FD",
"display_name": "Roland", "display_name": "Roland",
"main_file": "src/main.lua", "main_file": "src/main.lua",

View file

@ -74,7 +74,7 @@ SMODS.Tag {
if tag.triggered or if tag.triggered or
(tag.ability.amount or self.config.amount) <= 0 or (tag.ability.amount or self.config.amount) <= 0 or
(context.card.edition and context.card.edition.Roland_frozen) or ((context.card or {}).edition or {}).Roland_frozen or
context.type ~= "Bakery_score_card" then context.type ~= "Bakery_score_card" then
return return
end end