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
+14
+14
View File
@@ -1104,6 +1104,13 @@ export default class AttackSkillTestScene extends Phaser.Scene {
// 更新UI提示 // 更新UI提示
this.controlInfoText.setText('当前控制: 元歌'); this.controlInfoText.setText('当前控制: 元歌');
// 恢复本体的移动能力
const yuange = this.currentlyControlled;
if (yuange) {
yuange.canMove = true;
yuange.setVelocity(0, 0);
}
// 更新技能轮盘显示为元歌本体的技能 // 更新技能轮盘显示为元歌本体的技能
this.updateSkillWheelDisplay(); this.updateSkillWheelDisplay();
@@ -1512,6 +1519,13 @@ export default class AttackSkillTestScene extends Phaser.Scene {
// 更新UI提示 // 更新UI提示
this.controlInfoText.setText('当前控制: 元歌'); this.controlInfoText.setText('当前控制: 元歌');
// 恢复本体的移动能力
const yuange = this.currentlyControlled;
if (yuange) {
yuange.canMove = true;
yuange.setVelocity(0, 0);
}
// 更新技能轮盘显示为元歌本体的技能 // 更新技能轮盘显示为元歌本体的技能
this.updateSkillWheelDisplay(); this.updateSkillWheelDisplay();