Merge pull request #645 from argonui/start-in-play
Added deck-checking for "Forced Learning"
This commit is contained in:
commit
85cbb09c75
@ -295,6 +295,14 @@ function doUpkeep(_, clickedByColor, isRightClick)
|
|||||||
if cardMetadata.uses ~= nil then
|
if cardMetadata.uses ~= nil then
|
||||||
tokenManager.maybeReplenishCard(obj, cardMetadata.uses, self)
|
tokenManager.maybeReplenishCard(obj, cardMetadata.uses, self)
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user