Fixed so that advantage/disadvantage dice are properly considered when rerolling

This commit is contained in:
WBHarry 2026-02-14 12:25:00 +01:00
parent 472f876ea3
commit e982162402
2 changed files with 4 additions and 2 deletions

View file

@ -409,7 +409,9 @@ export default class DualityRoll extends D20Roll {
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);

View file

@ -2,7 +2,7 @@
"id": "daggerheart",
"title": "Daggerheart",
"description": "An unofficial implementation of the Daggerheart system",
"version": "1.7.1",
"version": "1.7.2",
"compatibility": {
"minimum": "13.346",
"verified": "13.351",