avrae / d20

A fast, powerful, and extensible dice engine for D&D, d20 systems, and any other system that needs dice!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detecting natural ones

ktnlvr opened this issue · comments

Does this library have a way to check for natural ones on rolls? I was walking the syntax tree, but it doesn't seep all that efficient.

Yes, see CritType.FAIL and the property that can return it, RollResult.crit