diff --git a/src/playermat/Playmat.ttslua b/src/playermat/Playmat.ttslua index 4b133d7d..9ddb7269 100644 --- a/src/playermat/Playmat.ttslua +++ b/src/playermat/Playmat.ttslua @@ -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