fixed class restriction logic

This commit is contained in:
Chr1Z93 2024-08-01 21:07:47 +02:00
parent 8a8293d1a2
commit 10df46854a

View File

@ -423,7 +423,7 @@ function buildAvailableWeaknesses(restrictions)
-- disable class restricted weaknesses
if restrictions.class then
local card = cardIdIndex[weaknessId]
if card.metadata.classRestriction ~= restrictions.class then
if card.metadata.classRestriction and card.metadata.classRestriction ~= restrictions.class then
eligible = false
end
end