抽卡:修复紫卡保底

This commit is contained in:
luying
2021-07-01 17:28:48 +08:00
parent 2338acda54
commit 6e327a2d4c

View File

@@ -302,7 +302,7 @@ export class GachaPull {
}
private getPurpleFloor(count: number, index: number, contentId: number, resultList: GachaResult[]) {
if(count == 10 && index == count - 1) { // 10连到最后一抽
if(this.gachaType == GACHA_ID.NORMAL && count == 10 && index == count - 1) { // 10连到最后一抽
let { type, param } = gameData.gachaContent.get(contentId);
if(type != GACHA_CONTENT_TYPE.HERO || param[0] < HERO_QUALITY_TYPE.PURPLE) {
let hasPurple = false;