fix(ASTS) 修复提前收回傀儡无法移动的问题

This commit is contained in:
chicrobot committed 2026-01-30 17:35:25 +08:00
1 parent 3ced49e6d1
commit a17a396927
1 file changed
+18 -4
+18 -4
View File
@@ -1102,10 +1102,17 @@ export default class AttackSkillTestScene extends Phaser.Scene {
yuange.setSelected(true);
// 更新UI提示
this.controlInfoText.setText('当前控制: 元歌');
// 更新技能轮盘显示为元歌本体的技能
this.updateSkillWheelDisplay();
this.controlInfoText.setText('当前控制: 元歌');
// 恢复本体的移动能力
const yuange = this.currentlyControlled;
if (yuange) {
yuange.canMove = true;
yuange.setVelocity(0, 0);
}
// 更新技能轮盘显示为元歌本体的技能
this.updateSkillWheelDisplay();
// 更新选择系统并锁定相机到本体
import('../../systems/ControlMode.js').then(mod => {
@@ -1512,6 +1519,13 @@ export default class AttackSkillTestScene extends Phaser.Scene {
// 更新UI提示
this.controlInfoText.setText('当前控制: 元歌');
// 恢复本体的移动能力
const yuange = this.currentlyControlled;
if (yuange) {
yuange.canMove = true;
yuange.setVelocity(0, 0);
}
// 更新技能轮盘显示为元歌本体的技能
this.updateSkillWheelDisplay();