Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unconditionally super up in TokenDocumentPF2e#prepareBaseData #15000

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Unconditionally super up in TokenDocumentPF2e#prepareBaseData
  • Loading branch information
stwlam committed Jun 7, 2024
commit 29002508ebce7be1005129fe7ae9f5b9e99ef2e8
4 changes: 2 additions & 2 deletions src/module/scene/token-document/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ class TokenDocumentPF2e<TParent extends ScenePF2e | null = ScenePF2e | null> ext

/** If rules-based vision is enabled, disable manually configured vision radii */
override prepareBaseData(): void {
super.prepareBaseData();

this.flags = fu.mergeObject(this.flags, { pf2e: {} });
const actor = this.actor;
if (!actor) return;
Expand All @@ -210,8 +212,6 @@ class TokenDocumentPF2e<TParent extends ScenePF2e | null = ScenePF2e | null> ext
// Token dimensions from actor size
TokenDocumentPF2e.prepareSize(this);

super.prepareBaseData();

// Merge token overrides from REs into this document
const tokenOverrides = actor.synthetics.tokenOverrides;
this.name = tokenOverrides.name ?? this.name;
Expand Down
Loading