任务:埋点30/70
This commit is contained in:
@@ -184,7 +184,7 @@ export class NormalBattleHandler {
|
||||
}
|
||||
|
||||
const now = Date.now(); // 当前时间戳
|
||||
let apJson = await setAp(now, roleId, -1 * warInfo.cost); // 扣除体力
|
||||
let apJson = await setAp(now, roleId, sid, -1 * warInfo.cost); // 扣除体力
|
||||
if(!apJson) {
|
||||
return resResult(STATUS.BATTLE_ACTION_POINT_LACK);
|
||||
}
|
||||
@@ -301,7 +301,7 @@ export class NormalBattleHandler {
|
||||
warInfo['cost'] = 0;
|
||||
}
|
||||
const now = Date.now(); // 当前时间戳
|
||||
let apJson = await setAp(now, roleId, -1 * warInfo.cost * count); // 扣除体力
|
||||
let apJson = await setAp(now, roleId, sid, -1 * warInfo.cost * count); // 扣除体力
|
||||
if(!apJson) {
|
||||
return resResult(STATUS.BATTLE_ACTION_POINT_LACK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user