远征:参数错误
This commit is contained in:
@@ -1720,7 +1720,8 @@ function checkExpeditionBattleHeroFormat(...params: { dataId: number, hp: number
|
||||
for(let param of params) {
|
||||
if(!checkArrayCanEmpty(param)) return false;
|
||||
for(let { dataId, hp, ap } of param) {
|
||||
if(!checkNaturalNumbers(dataId, hp, ap)) return false;
|
||||
if(!checkNaturalNumbers(dataId, ap)) return false;
|
||||
if(!isNumber(hp)) return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user