From bc32adbdfd228c9bc4139a66e8abc4b76236b8c3 Mon Sep 17 00:00:00 2001 From: Gavin McDonald Date: Wed, 11 Jun 2025 15:33:23 -0400 Subject: [PATCH] card info for DM before flip --- components/Card.tsx | 2 +- tools/getCardInfo.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/Card.tsx b/components/Card.tsx index aa98eee..8e44b43 100644 --- a/components/Card.tsx +++ b/components/Card.tsx @@ -55,7 +55,7 @@ export default function Card({ dm, card, position, settings, flipAction }: CardP Card Back
diff --git a/tools/getCardInfo.ts b/tools/getCardInfo.ts index 72a21ee..47e6d78 100644 --- a/tools/getCardInfo.ts +++ b/tools/getCardInfo.ts @@ -11,7 +11,7 @@ export default function getTooltip( let text: string[] = []; - if (flipped) { + if (dm || flipped) { if (dm || settings.positionFront) text.push(position.text); if (dm) text.push(`${cardName}: ${description}`); @@ -33,11 +33,9 @@ export default function getTooltip( // Low deck: Tome, Ravenkind, or Sunsword if (isLowCard(card)) { - if (dm) text.push(card.prophecy.dmText); if (dm || settings.prophecy) text.push(card.prophecy.playerText); + if (dm) text.push(card.prophecy.dmText); } - } else { - if (dm || settings.positionBack) text.push(position.text); } return text;