Browse Source

修复新改动,但是HP为0时的错误

pull/1/head
枫谷剑仙 2 years ago
parent
commit
d84ad0d5f3
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      script-universal_function.js
  2. +1
    -1
      service-worker.js

+ 3
- 2
script-universal_function.js View File

@@ -1160,8 +1160,9 @@ function countTeamHp(team, leader1id, leader2id, solo, noAwoken = false) {
tAssist.awoken = 0;
}
const ability = noAwoken ? tMember.abilityNoAwoken : tMember.ability;
const hp = ability ? ability[0] : 0;
if (!hp) return 0;
const hp = ability?.[0] ?? 0;
if (!hp) continue;
const mulHP = hp * memberHpMul(tMember, tAssist, ls2, memberArr, solo) //战友队长技
* memberHpMul(tMember, tAssist, ls1, memberArr, solo);//我方队长技


+ 1
- 1
service-worker.js View File

@@ -20563,7 +20563,7 @@ const cachesMap = new Map([
],
[
"script-universal_function.js",
"2b9a65a604cc3bd88d74ac8394e3efbf"
"83a9efda1972c4bfc104743760e2de97"
],
[
"script.js",


Loading…
Cancel
Save