Open ohmusama opened 3 years ago
it does seem to work if you wrap everything in an extra set of parentheses like
(floor(sqrt(@attributes.hp.value)))
Seems to be working fine in the beta branch for foundry 0.8. Probably a foundry issue (that might have had a workaround in d&d) that has been fixed recently.
Math functions fail in Better Rolls.
Tests in world modules enabled: Better Rolls v1.4.11 libWrapper v1.6.0.0
Repro Steps 1
Create Acolyte actor in empty scene (from SRD) Modify Feature Attack Club Change Attack Roll Bonus to
floor(sqrt(10))
Roll ClubResult Exception:
Repro Steps 2
Create Acolyte actor in empty scene (from SRD) Modify Feature Attack Club Change Attack Roll Bonus to
floor(sqrt(@attributes.hp.value))
Roll ClubResult Exception:
Repro Steps 3
Create Acolyte actor in empty scene (from SRD) Modify Feature Attack Club Change Attack Roll Bonus to
sqrt(9)
Roll ClubResult Exception:
Expected
Math functions work in the base game here, and should work with better rolls too.