Prevent nil dereference from Freeze Tag
This commit is contained in:
parent
57d559cd5b
commit
31d9e000f5
2 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue