Skip to content

Commit

Permalink
Prevent gaining vision from controlled tokens without at least observ…
Browse files Browse the repository at this point in the history
…er ownership (#14178)
  • Loading branch information
stwlam committed Mar 12, 2024
1 parent bcfabf5 commit 09a2c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/canvas/token/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class TokenPF2e<TDocument extends TokenDocumentPF2e = TokenDocumentPF2e> extends

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

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

0 comments on commit 09a2c62

Please sign in to comment.