mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
Corrected ot Higher or Equal to for combo to continue
This commit is contained in:
parent
3b87e1d4a8
commit
e6f26deab9
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ export default class BaseDie extends foundry.dice.terms.Die {
|
|||
async continueCombo(maxIncreasesDiceSize) {
|
||||
const lastIndex = this.results.length - 1;
|
||||
|
||||
/* The Combo only continues if the latest roll was higher than the previous */
|
||||
if (this.results[lastIndex].result <= this.results[lastIndex - 1].result) return false;
|
||||
/* The Combo only continues if the latest roll was higher or equal to the previous */
|
||||
if (this.results[lastIndex].result < this.results[lastIndex - 1].result) return false;
|
||||
|
||||
const lastFaces = this.results[lastIndex].denomination?.slice(1) ?? this.faces;
|
||||
const increaseDiceSize = maxIncreasesDiceSize && lastFaces < 12 && this.results[lastIndex].result === lastFaces;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue