From 838aa5234b8ad6474d61133200c27cd1d14f4b68 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 17 Oct 2023 23:11:17 +0200 Subject: [PATCH] fixed area size to detect top card --- src/playermat/Playmat.ttslua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/playermat/Playmat.ttslua b/src/playermat/Playmat.ttslua index af2e2a4c..0159b886 100644 --- a/src/playermat/Playmat.ttslua +++ b/src/playermat/Playmat.ttslua @@ -68,7 +68,7 @@ local DECK_DISCARD_AREA = { }, size = { x = 0.4, - y = 0.1, + y = 1, z = 1.1 } } @@ -425,10 +425,13 @@ function drawCardsWithReshuffle(numCards) -- Norman Withers handling if string.match(activeInvestigatorId, "%d%d%d%d%d") == "08004" then 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 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 if harbinger then