From 6790578e208a55fda548a9dc19be7a9670e26165 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 28 Jul 2024 00:29:14 -0400 Subject: [PATCH] Deal encounter cards to players' hands --- src/core/MythosArea.ttslua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/core/MythosArea.ttslua b/src/core/MythosArea.ttslua index d986136b..4f9c0a75 100644 --- a/src/core/MythosArea.ttslua +++ b/src/core/MythosArea.ttslua @@ -177,17 +177,7 @@ end -- draw the provided card to the requesting playermat function actualEncounterCardDraw(card, params) - local metadata = JSON.decode(card.getGMNotes()) or {} - local DATA_HELPER = guidReferenceApi.getObjectByOwnerAndType("Mythos", "DataHelper") - - -- draw hidden cards facedown - local faceUpRotation = 0 - if metadata.hidden or DATA_HELPER.call('checkHiddenCard', card.getName()) then - faceUpRotation = 180 - end - - local rot = playermatApi.returnRotation(params.matColor):setAt("z", faceUpRotation) - deckLib.placeOrMergeIntoDeck(card, params.position, rot) + card.deal(1, params.mat.matColor) end -- gets the discard pile and shuffles it into the encounter deck