bnstooltips 1.20.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -318,7 +318,7 @@ function getMoneyObj(money) {
318
318
  };
319
319
  }
320
320
  function GetSkillMasteryValue(points, arcaneInfo) {
321
- if (points <= 0)
321
+ if (points <= 0 || arcaneInfo == null)
322
322
  return 0;
323
323
  return arcaneInfo.IsCooldown ? GetSkillMasteryCdValueForPoints(points, arcaneInfo.CooldownBreakpoints) : GetSkillMasteryValueForPoints(points, arcaneInfo.DamageSections);
324
324
  }
@@ -8971,7 +8971,7 @@ function AddSkillMastery(subInfoGroups, masteryPoints, arcaneInfo) {
8971
8971
  if (masteryPoints == null || masteryPoints == 0 || arcaneInfo == null)
8972
8972
  return;
8973
8973
  var masteryValue = GetSkillMasteryValue(masteryPoints, arcaneInfo);
8974
- if (masteryValue == null || masteryValue == 0)
8974
+ if (masteryValue == null)
8975
8975
  return;
8976
8976
  var formattedMasteryValue = Number.isInteger(masteryValue) ? masteryValue.toString() : masteryValue.toFixed(2).replace(',', '.');
8977
8977
  subInfoGroups.push({