foundryvtt / dnd5e

An implementation of the 5th Edition game system for Foundry Virtual Tabletop (http://foundryvtt.com).
MIT License
276 stars 177 forks source link

Deterministic `FormulaField` does not validate deterministic formulas with flavor text #3562

Closed dev7355608 closed 4 days ago

dev7355608 commented 2 weeks ago
new dnd5e.dataModels.fields.FormulaField({ deterministic: true }).validate("1[poison]") // Error: Roll.safeEval produced a non-numeric result from expression "1[poison]"