Skip to content

Commit

Permalink
Finish patching of token vision acquisition restriction (#14183)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Mar 12, 2024
1 parent 3e36819 commit 08ed14c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module/canvas/token/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ class TokenPF2e<TDocument extends TokenDocumentPF2e = TokenDocumentPF2e> extends

const partyVisionEnabled =
game.pf2e.settings.metagame.partyVision && !!this.actor?.hasPlayerOwner && !game.user.isGM;
return partyVisionEnabled || (this.observer && super._isVisionSource());
const controllingAsObserver = this.controlled && this.observer;

return partyVisionEnabled || controllingAsObserver || (!this.controlled && super._isVisionSource());
}

/** Include actor overrides in the clone if it is a preview */
Expand Down

0 comments on commit 08ed14c

Please sign in to comment.