v1.8.7 Bug Fixes

When Targeted limiter is added to Massive Damage, now shows <not configured> if an enemy has not been defined.

The function setCombatRoll() no longer crashes if a maneuver is not selected. Previously this would cause some attributes not to activate until a maneuver was selected.
This commit is contained in:
johndav2
2022-08-05 12:24:40 -07:00
parent 6c7bb90cc9
commit 2d127f1653
+2 -1
View File
@@ -10119,7 +10119,7 @@
function setMassiveDamageCharacteristic(debug, timer, value, rowID, level, setObj) {
const targeted = getIsTargeted(debug, timer, value, rowID, setObj);
const focused = getCustomizationValue(debug, timer, value, rowID, 'rank', 'focuseddamage');
const enemy = value[`repeating_attr_${rowID}_enemy`];
const enemy = value[`repeating_attr_${rowID}_enemy`] || '<not configured>';
const weaponclass = value[`repeating_attr_${rowID}_weaponclass`];
let characteristic = `DM +${level}`;
if (targeted) characteristic = characteristic + ` vs. ${enemy}`;
@@ -13111,6 +13111,7 @@
const maneuverSelected =_.isString(setObj.static_weapon_maneuver_name) ?
setObj.static_weapon_maneuver_name :
value.static_weapon_maneuver_name;
if (maneuverSelected === undefined) return;
const maneuverTitleCase = capital(maneuverSelected);
const maneuver = removeWhiteSpace(maneuverSelected);
const acv =