Hide inactive monsters from player display view

Inactive monsters are now filtered out of the DisplayView so DMs can
pre-stage summoned/reserve monsters without spoiling them for players.
Inactive characters remain visible since their inactive state is
player-relevant.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 14:39:59 -04:00
parent bb65709e26
commit e200f59b7e
+3 -2
View File
@@ -2414,8 +2414,9 @@ function DisplayView() {
let participantsToRender = []; let participantsToRender = [];
if (participants) { if (participants) {
// Show all participants, including dead ones (HP = 0) // Hide inactive monsters (pre-staged/summoned reserves) from the player view
participantsToRender = sortParticipantsByInitiative(participants, participants); const visibleParticipants = participants.filter(p => p.isActive || p.type !== 'monster');
participantsToRender = sortParticipantsByInitiative(visibleParticipants, visibleParticipants);
} }
const displayStyles = campaignBackgroundUrl const displayStyles = campaignBackgroundUrl