军团活动:粮草先行,已到达终点队伍不显示

This commit is contained in:
luying
2022-05-30 20:59:14 +08:00
parent bd67ab49af
commit 3ddda57b56
2 changed files with 5 additions and 3 deletions

View File

@@ -214,7 +214,9 @@ export class WoodenHorse {
case RACE_EVENT.JIANSU_1:
this.speed *= Math.pow(1 - effect[0] / 100, count); break;
case RACE_EVENT.JIANSU_2:
this.speed -= effect[0]; break;
this.speed -= effect[0];
if(this.speed < 0) this.speed = 0;
break;
case RACE_EVENT.SHANGHAI_1:
this.durability -= effect[0];
if(this.durability > 100) this.durability = 100;