Limit assistance to challenges with multiple active obstacles
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user