Skip to content

Commit

Permalink
修正计算队长技自动回复量的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapaler committed Oct 17, 2023
1 parent 23d09fb commit d113c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5526,6 +5526,7 @@ function refreshTeamAwokenEfeect(awokenEffectDom, team, ti) {
//解析两个队长技
let leader1 = members[swapId || 0], //换队长或者默认队长
leader2 = members[5];
console.log(leader1.ability)
let parseLSkill1 = skillParser(leader1?.card?.leaderSkillId),
parseLSkill2 = skillParser(leader2?.card?.leaderSkillId);
//防绑
Expand Down Expand Up @@ -5568,11 +5569,11 @@ function refreshTeamAwokenEfeect(awokenEffectDom, team, ti) {
let lsAwoken1 = parseLSkill1.filter(skill=>skill.kind == SkillKinds.AutoHeal),
lsAwoken2 = parseLSkill1.filter(skill=>skill.kind == SkillKinds.AutoHeal);
if (lsAwoken1.length) {
const [,,rcv] = leader1.ability[2];
const [,,rcv] = leader1.ability;
count += rcv * lsAwoken1[0].value.value;
}
if (lsAwoken2.length) {
const [,,rcv] = leader2.ability[2];
const [,,rcv] = leader2.ability;
count += rcv * lsAwoken2[0].value.value;
}

Expand Down
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -18487,7 +18487,7 @@ const cachesMap = new Map([
],
[
"script.js",
"3f34e0ca7d15e34bcd9814ea5ab0d084"
"0f4c8f66c579969cd03f35b690a291e2"
],
[
"solo.html",
Expand Down

0 comments on commit d113c66

Please sign in to comment.