update card info ordering

This commit is contained in:
Gavin McDonald
2025-04-23 15:44:36 -04:00
parent bd7d42de55
commit 5b21c560d6

View File

@@ -19,15 +19,15 @@ export default function getTooltip(
if (isHighCard(card)) { if (isHighCard(card)) {
// High deck ally // High deck ally
if (position.id === 'ally') { if (position.id === 'ally') {
if (dm) text.push(`Ally: ${card.prophecy.allies[0].ally}`);
if (dm) text.push(card.prophecy.allies[0].dmText);
if (dm || settings.prophecy) text.push(card.prophecy.allies[0].playerText); if (dm || settings.prophecy) text.push(card.prophecy.allies[0].playerText);
if (dm) text.push(card.prophecy.allies[0].dmText);
if (dm) text.push(`Ally: ${card.prophecy.allies[0].ally}`);
} }
// High deck Strahd // High deck Strahd
if (position.id === 'strahd') { if (position.id === 'strahd') {
if (dm) text.push(card.prophecy.strahd.dmText);
if (dm || settings.prophecy) text.push(card.prophecy.strahd.playerText); if (dm || settings.prophecy) text.push(card.prophecy.strahd.playerText);
if (dm) text.push(card.prophecy.strahd.dmText);
} }
} }