diff --git a/dice_maiden.rb b/dice_maiden.rb index 8083a14..a70978c 100755 --- a/dice_maiden.rb +++ b/dice_maiden.rb @@ -1,6 +1,6 @@ # Dice bot for Discord # Author: Humblemonk -# Version: 9.0.3 +# Version: 9.0.4 # Copyright (c) 2017. All rights reserved. # !/usr/bin/ruby # If you wish to run a single instance of this bot, please follow the "Manual Install" section of the readme! @@ -77,6 +77,7 @@ @reroll_indefinite_check = 0 @reroll_count = 0 @botch = 0 + @dnum = '' check_roll_modes next if @ed && !replace_earthdawn(event) @@ -101,7 +102,7 @@ check_universal_modifiers # Check for dn - @dnum = @input.scan(/dn\s?(\d+)/).first.join.to_i if @input.match?(/^(1dn)\d+/i) + @dnum = @input.scan(/dn\s?(\d+)/).first.join.to_i if @input.match?(/^\s?(dn)\d+/i) # Check for correct input if @roll.match?(/\dd\d/i) diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index f3c557c..79d58b4 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,7 @@ +## 9.0.4 -2024-06-29 +### Added +- Resolved an issue with wrath and glory difficulty rolls + ## 9.0.3 -2024-06-27 ### Added - Updated multi roll logic to use semi colons to break between roll sets.