Skip to content

Commit

Permalink
Merge pull request Rayji96#253 from Rayji96/ww-rr-fixes
Browse files Browse the repository at this point in the history
Fix an issue where rage dice on Willpower Rerolls would be converted …
  • Loading branch information
Veilza authored Dec 24, 2023
2 parents 4649c00 + d1a4851 commit 0cdf101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ function dieSelect () {
function rerollDie (roll) {
// Variables
const diceSelected = $('.willpower-reroll .selected').length
const rageDiceSelected = $('.willpower-reroll .selected .rage-dice').length

// Get the actor associated with the message
// Theoretically I should error-check this, but there shouldn't be any
Expand All @@ -286,7 +287,7 @@ function rerollDie (roll) {
if (charactertype === 'hunter') { // Hunter-specific dice
rollHunterDice(diceSelected, speaker, game.i18n.localize('WOD5E.WillpowerReroll'), 0, 0, true)
} else if (charactertype === 'werewolf') { // Werewolf-specific dice
rollWerewolfDice(diceSelected, speaker, game.i18n.localize('WOD5E.WillpowerReroll'), 0, 0, true)
rollWerewolfDice(diceSelected, speaker, game.i18n.localize('WOD5E.WillpowerReroll'), 0, rageDiceSelected, true)
} else { // Everything else
rollDice(diceSelected, speaker, game.i18n.localize('WOD5E.WillpowerReroll'), 0, 0, false, true)
}
Expand Down

0 comments on commit 0cdf101

Please sign in to comment.