Merged with main

This commit is contained in:
WBHarry 2025-07-06 16:06:23 +02:00
commit 1bbebd2f32
5 changed files with 22 additions and 12 deletions

View file

@ -118,7 +118,7 @@ export default class D20Roll extends DHRoll {
applyAdvantage() {
this.d20.modifiers.findSplice(m => ['kh', 'kl'].includes(m));
if (!this.hasAdvantage && !this.hasDisadvantage) this.number = 1;
if (!this.hasAdvantage && !this.hasDisadvantage) this.d20.number = 1;
else {
this.d20.number = 2;
this.d20.modifiers.push(this.hasAdvantage ? 'kh' : 'kl');