Merge pull request #230 from argonui/victory-display

Victory Display: bug fix for cards without victory points
This commit is contained in:
Chr1Z 2023-03-09 07:12:23 +01:00 committed by GitHub
commit 39b7b3a245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ function getCardVP(obj, notes)
cardVP = tonumber(notes.locationBack.victory) cardVP = tonumber(notes.locationBack.victory)
end end
end end
if cardVP > 0 then if (cardVP or 0) > 0 then
table.insert(countedVP, obj) table.insert(countedVP, obj)
end end
else else