活动:装备bug
This commit is contained in:
@@ -248,6 +248,7 @@ export async function checkTaskConditionEquipSuitJewelStage(hero: HeroType) {
|
|||||||
let jewelLevel = -1;//宝石阶数
|
let jewelLevel = -1;//宝石阶数
|
||||||
for (let i = 0; i < hero.ePlace.length; i++) {
|
for (let i = 0; i < hero.ePlace.length; i++) {
|
||||||
let equipObj = <EquipType>hero.ePlace[i].equip;
|
let equipObj = <EquipType>hero.ePlace[i].equip;
|
||||||
|
if(equipObj) {
|
||||||
let equipObjInfo = getGoodById(equipObj.id);
|
let equipObjInfo = getGoodById(equipObj.id);
|
||||||
if (equipObj.holes.length == equipObjInfo.hole && equipObjInfo.hole > 0) {
|
if (equipObj.holes.length == equipObjInfo.hole && equipObjInfo.hole > 0) {
|
||||||
for (let j = 0; j < equipObj.holes.length; j++) {
|
for (let j = 0; j < equipObj.holes.length; j++) {
|
||||||
@@ -269,5 +270,6 @@ export async function checkTaskConditionEquipSuitJewelStage(hero: HeroType) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return { isTask, jewelLevel };
|
return { isTask, jewelLevel };
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user