fix(地图): 修复第一波怪物到来时错误进入战斗结束阶段的问题
第一波怪物到来时不应进入 BattleEnd 阶段,因为不存在"上一波"需要结束。现在第一波会直接显示波次提示动画,避免被加载界面遮挡。
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -703,8 +703,17 @@ export class MissionComp extends CCComp {
|
|||||||
|
|
||||||
this.isBossWave = !!data?.bossWave;
|
this.isBossWave = !!data?.bossWave;
|
||||||
|
|
||||||
// 在新一波到来时,先进入 BattleEnd,触发上一波的战斗结束技能 (fend),2秒后自动进入下一波的准备阶段
|
if (wave > 1) {
|
||||||
this.changePhase(MissionPhase.BattleEnd);
|
// 在新一波到来时,先进入 BattleEnd,触发上一波的战斗结束技能 (fend),2秒后自动进入下一波的准备阶段
|
||||||
|
this.changePhase(MissionPhase.BattleEnd);
|
||||||
|
} else {
|
||||||
|
// 第1波不需要结束上一波,延迟一点播放提示,避免被开始游戏的loading遮挡
|
||||||
|
this.scheduleOnce(() => {
|
||||||
|
if (this.currentPhase === MissionPhase.Prepare) {
|
||||||
|
this.playTooltipAnim(`第 ${wave} 波`);
|
||||||
|
}
|
||||||
|
}, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
this.currentWave = wave;
|
this.currentWave = wave;
|
||||||
smc.vmdata.mission_data.level = wave;
|
smc.vmdata.mission_data.level = wave;
|
||||||
|
|||||||
Reference in New Issue
Block a user