Prechádzať zdrojové kódy

Save attack modifier was floored

Warafear 1 rok pred
rodič
commit
993f9ed342

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