Skip to content

Commit

Permalink
Merge pull request #308 from xiv-gear-planner/fix-traitmulti
Browse files Browse the repository at this point in the history
Fix traitmulti
  • Loading branch information
xpdota authored Sep 4, 2024
2 parents 9c2fabb + 4ba1abe commit a82acf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xivmath/src/xivstats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class ComputedSetStatsImpl implements ComputedSetStats {
}

traitMulti(attackType: AttackType): number {
return this.classJobStats.traitMulti(this.level, attackType);
return this.classJobStats.traitMulti?.(this.level, attackType) ?? 1.0;
}

get hp(): number {
Expand Down

0 comments on commit a82acf0

Please sign in to comment.