Fixed so that advantage/disadvantage dice are properly considered when rerolling (#1662)

This commit is contained in:
WBHarry 2026-02-14 13:09:13 +01:00 committed by GitHub
parent b64a9002ea
commit ca434d33f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);