Bladeren bron

Save attack modifier was floored

Warafear 1 jaar geleden
bovenliggende
commit
993f9ed342
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/app/journal/journal-stats/ability-panel/spellslots/spellslots.component.ts

+ 1 - 1
src/app/journal/journal-stats/ability-panel/spellslots/spellslots.component.ts

@@ -73,7 +73,7 @@ export class SpellslotsComponent {
     const spellcastingAttribute = this.spellcastingAttribute;
 
     if (spellcastingAttribute !== undefined) {
-      const modifier = (this.attributeValue - 10) / 2;
+      const modifier = Math.floor((this.attributeValue - 10) / 2);
       this.spellAttackModifier = modifier + this.proficiencyBonus;
       this.spellSaveDC = 8 + modifier + this.proficiencyBonus;
     }