Merge pull request #766 from argonui/replenish
Only replenish face up cards
This commit is contained in:
commit
843d6d4e10
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user