Humblemonk / DiceMaiden

Dice bot for Discord
Apache License 2.0
121 stars 56 forks source link

Rerolls not working with multiple dice #187

Closed Furyfoggy closed 5 months ago

Furyfoggy commented 2 years ago

For some reason, when you have multiple types of dice to Reroll, it doesn’t actually Reroll most of them.

I used commands like “!roll 6d4 r2 + 2d6 r2 + 1d4 + 6” and it didn’t reroll any of them or very few of them, because I was still experiencing 1’s and 2’s.

I expected it to reroll each individual dice that had a 1 or 2 on it, which it either didnt do or didn’t display that it did on the “Rerolls:” part of the output.

Screenshots 58F1407B-E90A-4C83-8E63-BFB16ECDD5EE 4CD9793A-327D-42D3-885D-C18D56108F4F 45512DC3-32AD-4C0C-A140-70E82F4F7E03

Humblemonk commented 5 months ago

Thanks for reporting this issue. I think If found the issue with multi dice roll syntaxes, we are currently only checking the last part of the roll for the reroll value. I am updating this today to check all parts of the roll syntax