fixed class restriction logic
This commit is contained in:
parent
8a8293d1a2
commit
10df46854a
@ -423,7 +423,7 @@ function buildAvailableWeaknesses(restrictions)
|
|||||||
-- disable class restricted weaknesses
|
-- disable class restricted weaknesses
|
||||||
if restrictions.class then
|
if restrictions.class then
|
||||||
local card = cardIdIndex[weaknessId]
|
local card = cardIdIndex[weaknessId]
|
||||||
if card.metadata.classRestriction ~= restrictions.class then
|
if card.metadata.classRestriction and card.metadata.classRestriction ~= restrictions.class then
|
||||||
eligible = false
|
eligible = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user