fix 修复远征当前血量和最大血量无法匹配bug
This commit is contained in:
@@ -193,6 +193,7 @@ export async function calcuHangUpReward(roleId: string, speedUp = false, speedUp
|
||||
}
|
||||
|
||||
async function checkCond(roleId: string, heroes, type: number, param: number, cnt: number) {
|
||||
|
||||
let heroCnt = 0;
|
||||
|
||||
switch (type) {
|
||||
@@ -217,7 +218,7 @@ async function checkCond(roleId: string, heroes, type: number, param: number, cn
|
||||
for(let seqId of heroes) {
|
||||
let {hid} = await HeroModel.findBySeqIdAndRole(seqId, roleId);
|
||||
const hInfo = getHeroInfoById(hid);
|
||||
if (getJobInfoById(hInfo.jobid) === param) {
|
||||
if (getJobInfoById(hInfo.jobid).job_class === param) {
|
||||
heroCnt++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user