Merge pull request #766 from argonui/replenish

Only replenish face up cards
This commit is contained in:
dscarpac 2024-07-10 17:21:31 -05:00 committed by GitHub
commit 843d6d4e10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -347,7 +347,7 @@ function doUpkeep(_, clickedByColor, isRightClick)
end end
-- maybe replenish uses on certain cards (don't continue for cards on the deck (Norman) or in the discard pile) -- maybe replenish uses on certain cards (don't continue for cards on the deck (Norman) or in the discard pile)
if cardMetadata.uses ~= nil and self.positionToLocal(obj.getPosition()).x > -1 then if cardMetadata.uses ~= nil and self.positionToLocal(obj.getPosition()).x > -1 and not obj.is_face_down then
tokenManager.maybeReplenishCard(obj, cardMetadata.uses, self) tokenManager.maybeReplenishCard(obj, cardMetadata.uses, self)
end end
elseif obj.type == "Deck" and forcedLearning == false then elseif obj.type == "Deck" and forcedLearning == false then