浏览代码

Save attack modifier was floored

Warafear 1 年之前
父节点
当前提交
993f9ed342
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
     }