Skip to content

Commit

Permalink
[#3072] Fix scale correction control being stuck at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Feb 17, 2024
1 parent a146c32 commit fc4b49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/applications/token-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class TokenConfig5e extends TokenConfig {
let ringTab = document.createElement("div");
const flags = this.document.getFlag("dnd5e", "tokenRing") ?? {};
ringTab.innerHTML = await renderTemplate(this.constructor.dynamicRingTemplate, {
flags: foundry.utils.mergeObject(flags, { scaleCorrection: 1 }, { inplace: false }),
flags: foundry.utils.mergeObject({ scaleCorrection: 1 }, flags, { inplace: false }),
effects: Object.entries(CONFIG.DND5E.tokenRings.effects).reduce((obj, [key, label]) => {
const mask = CONFIG.Token.ringClass.effects[key];
obj[key] = { label, checked: (flags.effects & mask) > 0 };
Expand Down

0 comments on commit fc4b49b

Please sign in to comment.