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

This commit is contained in:
枫谷剑仙 2023-12-18 20:28:01 +08:00
parent b9c768265c
commit d84ad0d5f3
2 changed files with 4 additions and 3 deletions

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);//我方队长技

View File

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