Skip to content

Invalid equation rolling +0 #41

Description

@oxcar103

When rolling any dice +0, for example /roll d20+0 it triggers the "Invalid equation" message

I think it triggers because it separates terms and when evaluating this line:

if item and (item in ['+','-','/','*',')','('] or int(item)):

int('0') is false, so I suggest replace int(item) by item.isdigit())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions