mirror of
http://junepve.top:3000/chicrobot/CINC.git
synced 2026-10-29 21:41:29 +08:00
fix(ASTS) 修复技能释放方向会被移动触摸触发问题
This commit is contained in:
1 parent
84d05df3bd
commit
428e192690
1 file changed
+5
-5
@@ -617,7 +617,7 @@ export default class AttackSkillTestScene extends Phaser.Scene {
|
||||
directionY = direction.y * 100;
|
||||
} else {
|
||||
// 基于技能轮盘中心到指针的相对方向
|
||||
const pointer = this.input.activePointer;
|
||||
const pointer = this.skillWheel.activePointer || this.input.activePointer;
|
||||
directionX = pointer.x - this.skillWheel.centerX;
|
||||
directionY = pointer.y - this.skillWheel.centerY;
|
||||
}
|
||||
@@ -882,7 +882,7 @@ export default class AttackSkillTestScene extends Phaser.Scene {
|
||||
if (!this.currentlyControlled) return;
|
||||
|
||||
// 计算技能释放方向(基于技能轮盘中心到指针的相对方向)
|
||||
const pointer = this.input.activePointer;
|
||||
const pointer = this.skillWheel.activePointer || this.input.activePointer;
|
||||
const directionX = pointer.x - this.skillWheel.centerX;
|
||||
const directionY = pointer.y - this.skillWheel.centerY;
|
||||
|
||||
@@ -946,7 +946,7 @@ export default class AttackSkillTestScene extends Phaser.Scene {
|
||||
if (!this.currentlyControlled) return;
|
||||
|
||||
// 计算技能释放方向(基于技能轮盘中心到指针的相对方向)
|
||||
const pointer = this.input.activePointer;
|
||||
const pointer = this.skillWheel.activePointer || this.input.activePointer;
|
||||
const directionX = pointer.x - this.skillWheel.centerX;
|
||||
const directionY = pointer.y - this.skillWheel.centerY;
|
||||
|
||||
@@ -1167,7 +1167,7 @@ export default class AttackSkillTestScene extends Phaser.Scene {
|
||||
if (!this.currentlyControlled) return;
|
||||
|
||||
// 计算技能释放方向(基于技能轮盘中心到指针的相对方向)
|
||||
const pointer = this.input.activePointer;
|
||||
const pointer = this.skillWheel.activePointer || this.input.activePointer;
|
||||
const directionX = pointer.x - this.skillWheel.centerX;
|
||||
const directionY = pointer.y - this.skillWheel.centerY;
|
||||
|
||||
@@ -1436,7 +1436,7 @@ export default class AttackSkillTestScene extends Phaser.Scene {
|
||||
const diaochan = this.currentlyControlled;
|
||||
|
||||
// 计算技能释放方向(基于技能轮盘中心到指针的相对方向)
|
||||
const pointer = this.input.activePointer;
|
||||
const pointer = this.skillWheel.activePointer || this.input.activePointer;
|
||||
// 计算轮盘中心到指针的方向向量
|
||||
const directionX = pointer.x - this.skillWheel.centerX;
|
||||
const directionY = pointer.y - this.skillWheel.centerY;
|
||||
|
||||
Reference in new issue
Block a user