fix 初始战力星级读表错误

This commit is contained in:
luying
2020-12-28 14:33:14 +08:00
parent 9c5aa0a5e3
commit 988dbc978e

View File

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