tidy5e-sheet icon indicating copy to clipboard operation
tidy5e-sheet copied to clipboard

Character Sheet Visual Bug: Spell Attack Mod does not update properly

Open SlimDante opened this issue 2 years ago • 1 comments

image

After some testing it would seem the Attack mod parses only the first 2 characters from data.bonuses.rsak.attack and ignores the rest of the bonuses that might be added by class features when displaying on the bottom corner of the character sheet. They do however roll correctly in the game. The expected mod in this silly test was +25

SlimDante avatar Aug 06 '22 22:08 SlimDante

Try it know and see if I fixed it in the recent update (v10 only).

sdenec avatar Sep 03 '22 08:09 sdenec

The Attack Mod calculation seems to break if there is a roll formula in the ranged spell attack bonus (either with an AE or added in the Special Traits) such as with Bless

image

MaxPat931 avatar Sep 05 '22 01:09 MaxPat931

Should be fixed in the next update.

sdenec avatar Sep 05 '22 07:09 sdenec

Update is released. Please try it now :)

sdenec avatar Sep 05 '22 09:09 sdenec

The Attack mod does display now, and no errors are thrown, but humorously the sheet updates each time, "rolling" the d4 for the calculation.

https://user-images.githubusercontent.com/86370342/188745115-21336725-1ff6-44cf-98c7-f3c69474970f.mp4

MaxPat931 avatar Sep 06 '22 21:09 MaxPat931

Yep, that's how it is. How else could it be. There is a random element in the bonus so each time the sheet is opened it is evaluated. Because of that I put the label explaining where the value is coming from.

sdenec avatar Sep 06 '22 21:09 sdenec