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.js CHANGED
@@ -326,7 +326,7 @@ function getMoneyObj(money) {
326
326
  };
327
327
  }
328
328
  function GetSkillMasteryValue(points, arcaneInfo) {
329
- if (points <= 0)
329
+ if (points <= 0 || arcaneInfo == null)
330
330
  return 0;
331
331
  return arcaneInfo.IsCooldown ? GetSkillMasteryCdValueForPoints(points, arcaneInfo.CooldownBreakpoints) : GetSkillMasteryValueForPoints(points, arcaneInfo.DamageSections);
332
332
  }
@@ -8979,7 +8979,7 @@ function AddSkillMastery(subInfoGroups, masteryPoints, arcaneInfo) {
8979
8979
  if (masteryPoints == null || masteryPoints == 0 || arcaneInfo == null)
8980
8980
  return;
8981
8981
  var masteryValue = GetSkillMasteryValue(masteryPoints, arcaneInfo);
8982
- if (masteryValue == null || masteryValue == 0)
8982
+ if (masteryValue == null)
8983
8983
  return;
8984
8984
  var formattedMasteryValue = Number.isInteger(masteryValue) ? masteryValue.toString() : masteryValue.toFixed(2).replace(',', '.');
8985
8985
  subInfoGroups.push({