Browse Source

解决大觉醒也被显示出来的问题

tags/v9.1
枫谷剑仙 5 years ago
parent
commit
b0d9a94108
1 changed files with 12 additions and 6 deletions
  1. +12
    -6
      script.js

+ 12
- 6
script.js View File

@@ -2826,10 +2826,13 @@ function refreshTeamAwokenCount(awokenDom, team) {
let totalNum = 0;
//搜索等效觉醒
const equivalentAwoken = equivalent_awoken.find(eak => eak.small === ai || eak.big === ai);
if (equivalentAwoken && equivalentAwoken.small === ai)
if (equivalent_awoken)
{
totalNum = awokenCountInTeam(team, equivalentAwoken.small, solo, teamsCount) +
awokenCountInTeam(team, equivalentAwoken.big, solo, teamsCount) * equivalentAwoken.times;
if (equivalentAwoken.small === ai)
{
totalNum = awokenCountInTeam(team, equivalentAwoken.small, solo, teamsCount) +
awokenCountInTeam(team, equivalentAwoken.big, solo, teamsCount) * equivalentAwoken.times;
}
} else
{
totalNum = awokenCountInTeam(team, ai, solo, teamsCount);
@@ -2857,10 +2860,13 @@ function refreshFormationAwokenCount(awokenDom, teams) {
let totalNum = 0;
//搜索等效觉醒
const equivalentAwoken = equivalent_awoken.find(eak => eak.small === ai || eak.big === ai);
if (equivalentAwoken && equivalentAwoken.small === ai)
if (equivalentAwoken)
{
totalNum = awokenCountInFormation(teams, equivalentAwoken.small, solo) +
awokenCountInFormation(teams, equivalentAwoken.big, solo) * equivalentAwoken.times;
if (equivalentAwoken.small === ai)
{
totalNum = awokenCountInFormation(teams, equivalentAwoken.small, solo) +
awokenCountInFormation(teams, equivalentAwoken.big, solo) * equivalentAwoken.times;
}
} else
{
totalNum = awokenCountInFormation(teams, ai, solo);


Loading…
Cancel
Save