check decks for forced learning
This commit is contained in:
parent
48b7a1e14b
commit
c26bb0cee3
@ -2,7 +2,6 @@
|
||||
"id": "08031",
|
||||
"type": "Asset",
|
||||
"class": "Seeker",
|
||||
"startsInPlay": true,
|
||||
"level": 0,
|
||||
"traits": "Talent. Ritual.",
|
||||
"permanent": true,
|
||||
|
@ -295,6 +295,14 @@ function doUpkeep(_, clickedByColor, isRightClick)
|
||||
if cardMetadata.uses ~= nil then
|
||||
tokenManager.maybeReplenishCard(obj, cardMetadata.uses, self)
|
||||
end
|
||||
-- check decks for forced learning
|
||||
elseif obj.type == "Deck" and forcedLearning == false then
|
||||
for _, deepObj in ipairs(obj.getObjects()) do
|
||||
local cardMetadata = JSON.decode(deepObj.gm_notes) or {}
|
||||
if cardMetadata.id == "08031" then
|
||||
forcedLearning = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user