From 65701768db439797713eea954d9434e361e7f2e2 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 83a10cf6..5851c96d 100644 --- a/src/core/MythosArea.ttslua +++ b/src/core/MythosArea.ttslua @@ -180,17 +180,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