修复新改动,但是HP为0时的错误
This commit is contained in:
parent
b9c768265c
commit
d84ad0d5f3
|
@ -1160,8 +1160,9 @@ function countTeamHp(team, leader1id, leader2id, solo, noAwoken = false) {
|
||||||
tAssist.awoken = 0;
|
tAssist.awoken = 0;
|
||||||
}
|
}
|
||||||
const ability = noAwoken ? tMember.abilityNoAwoken : tMember.ability;
|
const ability = noAwoken ? tMember.abilityNoAwoken : tMember.ability;
|
||||||
const hp = ability ? ability[0] : 0;
|
const hp = ability?.[0] ?? 0;
|
||||||
if (!hp) return 0;
|
if (!hp) continue;
|
||||||
|
|
||||||
const mulHP = hp * memberHpMul(tMember, tAssist, ls2, memberArr, solo) //战友队长技
|
const mulHP = hp * memberHpMul(tMember, tAssist, ls2, memberArr, solo) //战友队长技
|
||||||
* memberHpMul(tMember, tAssist, ls1, memberArr, solo);//我方队长技
|
* memberHpMul(tMember, tAssist, ls1, memberArr, solo);//我方队长技
|
||||||
|
|
||||||
|
|
|
@ -20563,7 +20563,7 @@ const cachesMap = new Map([
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"script-universal_function.js",
|
"script-universal_function.js",
|
||||||
"2b9a65a604cc3bd88d74ac8394e3efbf"
|
"83a9efda1972c4bfc104743760e2de97"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"script.js",
|
"script.js",
|
||||||
|
|
Loading…
Reference in New Issue