🐞 fix(expedition battle): 永久类守护盾远征切关时保留

This commit is contained in:
dcl
2023-02-22 14:40:03 +08:00
parent 2f73cc010c
commit ddc1af67de
4 changed files with 15 additions and 11 deletions
+3 -2
View File
@@ -274,6 +274,7 @@ describe('战斗测试', function () {
expect(hero.dataId).to.be.a('number');
expect(hero.hp).to.be.a('number');
expect(hero.ap).to.be.a('number');
expect(hero.shield).to.be.a('number');
});
expect(res.data.resetCnt).to.be.a('number');
done();
@@ -331,8 +332,8 @@ describe('战斗测试', function () {
});
it('远征关卡结束战斗', function (done) {
let { expeditionId, battleId } = expeditionWarRecord;
let heroes = paramHeroes.map(hero => { return { dataId: hero, hp: 100, ap: 100 }})
let { expeditionId, battleId } = expeditionWarRecord;
let heroes = paramHeroes.map(hero => { return { dataId: hero, hp: 100, ap: 100, shield: 100 }})
pinusClient.request('battle.expeditionBattleHandler.battleEnd', {
expeditionCode, expeditionId, battleId, battleCode, heroes, enemies: [], star: 3, stars: [], isSuccess: true
}, (res) => {