modules/migration.js
/**
 * Add extra Power elements to address resist Test
 * and half damage when spell is resisted
 * @private
 */
Add extra Power elements to address resist Test
and half damage when spell is resisted
@private
Add extra Power elements to address resist Test and half damage when spell is resisted @private
function _addExtraPowerData(item, updateData) {
  if (item.type !== "power") return updateData;
  if (item.data.ablFatigue) return updateData;
  updateData["data.causeHealing"] = false;
  updateData["data.ablFatigue"] = "will";
  updateData["data.hasTest"] = false;
  updateData["data.testAbl"] = "will";
  updateData["data.testFocus"] = "";
  updateData["data.damageResisted"] = {};
  updateData["data.damageResisted.nrDice"] = 1;
  updateData["data.damageResisted.diceType"] = 6;
  updateData["data.damageResisted.extraValue"] = 0;
  updateData["data.damageResisted.dmgAbl"] = "will";
  return updateData;
}
function _addExtraPowerData ( item , updateData ) { if ( item . type !== "power" ) return updateData ; if ( item . data . ablFatigue ) return updateData ; updateData [ "data.causeHealing" ] = false ; updateData [ "data.ablFatigue" ] = "will" ; updateData [ "data.hasTest" ] = false ; updateData [ "data.testAbl" ] = "will" ; updateData [ "data.testFocus" ] = "" ; updateData [ "data.damageResisted" ] = { } ; updateData [ "data.damageResisted.nrDice" ] = 1 ; updateData [ "data.damageResisted.diceType" ] = 6 ; updateData [ "data.damageResisted.extraValue" ] = 0 ; updateData [ "data.damageResisted.dmgAbl" ] = "will" ; return updateData ; }
Add extra Power elements to address resist Test
 and half damage when spell is resisted
 @private
Add extra Power elements to address resist Test and half damage when spell is resisted @private