fixed area size to detect top card

This commit is contained in:
Chr1Z93 2023-10-17 23:11:17 +02:00
parent b94bdc8e33
commit 838aa5234b

View File

@ -68,7 +68,7 @@ local DECK_DISCARD_AREA = {
}, },
size = { size = {
x = 0.4, x = 0.4,
y = 0.1, y = 1,
z = 1.1 z = 1.1
} }
} }
@ -425,10 +425,13 @@ function drawCardsWithReshuffle(numCards)
-- Norman Withers handling -- Norman Withers handling
if string.match(activeInvestigatorId, "%d%d%d%d%d") == "08004" then if string.match(activeInvestigatorId, "%d%d%d%d%d") == "08004" then
local harbinger = false local harbinger = false
if topCard ~= nil and topCard.getName() == "The Harbinger" then harbinger = true if topCard ~= nil and topCard.getName() == "The Harbinger" then
harbinger = true
elseif drawDeck ~= nil and not drawDeck.is_face_down then elseif drawDeck ~= nil and not drawDeck.is_face_down then
local cards = drawDeck.getObjects() local cards = drawDeck.getObjects()
if cards[#cards].name == "The Harbinger" then harbinger = true end if cards[#cards].name == "The Harbinger" then
harbinger = true
end
end end
if harbinger then if harbinger then