mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
Fixed so that advantage/disadvantage dice are properly considered when rerolling (#1662)
This commit is contained in:
parent
b64a9002ea
commit
ca434d33f1
1 changed files with 3 additions and 1 deletions
|
|
@ -409,7 +409,9 @@ export default class DualityRoll extends D20Roll {
|
||||||
difficulty: message.system.roll.difficulty ? Number(message.system.roll.difficulty) : null
|
difficulty: message.system.roll.difficulty ? Number(message.system.roll.difficulty) : null
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
newRoll.extra = newRoll.extra.slice(2);
|
|
||||||
|
const extraIndex = newRoll.advantage ? 3 : 2;
|
||||||
|
newRoll.extra = newRoll.extra.slice(extraIndex);
|
||||||
|
|
||||||
const tagTeamSettings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.TagTeamRoll);
|
const tagTeamSettings = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.TagTeamRoll);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue