fix 初始角色星级读表

This commit is contained in:
luying
2020-12-29 15:26:22 +08:00
parent 2138c52481
commit 47f65e23ba

View File

@@ -198,9 +198,9 @@ export function calHeroStarIncAttr(hero: HeroType, type: number, hid: number, ar
const isWake = colorStar > 0; // 是否觉醒,只要激活了觉醒,彩星就会 > 1
if(isWake) {
if(colorStarStage == ABI_STAGE.START && !isInit) originColorStar = colorStar - 1;
if(colorStarStage == ABI_STAGE.START) originColorStar = colorStar - 1;
} else {
if(starStage == ABI_STAGE.START && !isInit) originStar = star - 1;
if(starStage == ABI_STAGE.START) originStar = star - 1;
}
const dicStar = isWake ? getHeroWakeByQuality(quality, originColorStar) : getHeroStarByQuality(quality, originStar); // 星级表