Skip to content

Commit

Permalink
Fix wng dnum rolls
Browse files Browse the repository at this point in the history
Resolved an issue with difficulty rating rolls for wrath and glory
  • Loading branch information
Humblemonk committed Jun 29, 2024
1 parent 4208a3c commit a004340
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dice_maiden.rb
Original file line number Diff line number Diff line change
@@ -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!
Expand Down Expand Up @@ -77,6 +77,7 @@
@reroll_indefinite_check = 0
@reroll_count = 0
@botch = 0
@dnum = ''

check_roll_modes
next if @ed && !replace_earthdawn(event)
Expand All @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit a004340

Please sign in to comment.