diff --git a/src/playercards/AllCardsBag.ttslua b/src/playercards/AllCardsBag.ttslua index 0f864339..b0aa65ab 100644 --- a/src/playercards/AllCardsBag.ttslua +++ b/src/playercards/AllCardsBag.ttslua @@ -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