Limit assistance to challenges with multiple active obstacles

This commit is contained in:
2026-09-04 19:23:35 -07:00
parent 673a26f271
commit 8fdd10f7a3
6 changed files with 35 additions and 4 deletions
@@ -126,6 +126,9 @@
Temporary Obstacle: <strong use:tooltip={{ html: cardTooltipHtml(ch.temp_card, $obstacleTable, true) }}>{getCardDisplay(ch.temp_card)}</strong>{playerName(ch.acting_player_id)} must answer it!
</p>
{:else}
<p class="info-text" style="margin-top: 0.5rem;">{state.obstacles.filter(o => chObstacleIds.includes(o.id)).length > 1
? 'Other Pi-Rats may assist. Assistants do not draw replacement cards.'
: 'Only the attempting Pi-Rat can play against this single Obstacle.'}</p>
<div class="challenge-obstacles">
{#each chObstacleIds as oid}
{@const obs = state.obstacles.find(o => o.id === oid)}