AC bonuses are not being applied

Issue #275 resolved
Ben Freeland created an issue

Setup

dnd5e: 1.4.1
obsidian: 5.0.8

Steps To Reproduce

  1. Create player sheet
  2. Create custom feature on sheet
  3. Create Effect block and add Bonus and Filter effects
  4. Set Bonus effect to Formula with a value of 1
  5. Set Filter effect to Score->AC

Expected:

Player AC is 11 when the effect is enabled and 10 when the effect is disabled

Observed:

Player AC is 10 regardless of whether the effect is enabled or disabled

Notes:

This appears to be a regression caused by patch e099babe8450d6689d781d2444457247867526aa in dnd5e which removed the ‘value' property from data.attributes.ac. The function applyACBonuses in js/data/bonuses.js assumes this value exists and tries to both load the current ac value and then write the modified ac value to it (which sounds like a recipe for the same problem as Issue #274).

Comments (1)

  1. Log in to comment