소스 검색

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