Skip to content

Commit

Permalink
fix: fixes issue where rendered dice didn't match result (close #252)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Oct 16, 2023
1 parent 7388384 commit 21671ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/roller/dice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,6 @@ export class StackRoller extends GenericRoller<number> {
} Stunt Points`;
}
}

if (a instanceof StuntRoller) {
if (a.doubles) {
this.stunted = ` - ${
Expand Down Expand Up @@ -1449,7 +1448,7 @@ export class StackRoller extends GenericRoller<number> {
}
}
const final = this.stack.pop();
final.rollSync();

if (final instanceof StuntRoller) {
if (final.doubles) {
this.stunted = ` - ${final.results.get(0).value} Stunt Points`;
Expand Down

0 comments on commit 21671ee

Please sign in to comment.