军团活动:粮草先行

This commit is contained in:
luying
2022-08-22 20:08:30 +08:00
parent 5915ef7df6
commit 18f519ba8c

View File

@@ -187,7 +187,7 @@ export class WoodenHorse {
case RACE_EVENT.GUISHOUYINFU: case RACE_EVENT.GUISHOUYINFU:
if (this.shieldTime < Date.now()) { if (this.shieldTime < Date.now()) {
this.time = endTime; this.time = endTime;
this.speed = effect[1]; this.speed = effect[1]||0.1;
} }
break; break;
case RACE_EVENT.FENGCHE: case RACE_EVENT.FENGCHE:
@@ -290,7 +290,7 @@ export class Event {
this.startDistance = distance; this.startDistance = distance;
this.endDistance = this.startDistance + dicEvent.continueDistance; this.endDistance = this.startDistance + dicEvent.continueDistance;
} }
if(dicEvent.continueTime) { if(dicEvent.effectTime) {
this.startTime = Date.now() + dicEvent.effectTime * 1000; this.startTime = Date.now() + dicEvent.effectTime * 1000;
this.endTime = this.startTime + dicEvent.continueTime * 1000; this.endTime = this.startTime + dicEvent.continueTime * 1000;
} }