怪物 改为3条直线 进入, 攻击动画 直线的已改, 抛物线和群攻的 也需要修改

This commit is contained in:
panw
2025-07-17 09:53:19 +08:00
parent 8aa4edabd4
commit 5a9da59acc
13 changed files with 62 additions and 37 deletions

View File

@@ -159,7 +159,7 @@ export class SkillConComp extends CCComp {
this.HeroView.node.position.y + BoxSet.ATK_Y, 0),
this.node.parent,
config.uuid,
new Vec3(target.x, target.y, 0),
new Vec3(target.x, target.y+BoxSet.ATK_Y, 0),
this.HeroView,
0,
dmg
@@ -196,7 +196,8 @@ export class SkillConComp extends CCComp {
let keyPos = this.HeroView.fac==FacSet.HERO ?
Math.min(...entities.map(e => e.get(HeroViewComp).node.position.x)) :
Math.max(...entities.map(e => e.get(HeroViewComp).node.position.x));
return keyPos
let keyEntity = entities.find(e => e.get(HeroViewComp).node.position.x === keyPos);
return keyEntity.get(HeroViewComp).node.position;
}
/** 筛选最前排单位 */
private filterFrontRow(): Vec3{
@@ -211,7 +212,7 @@ export class SkillConComp extends CCComp {
return v3(-400,0)
}
}
pos=v3(this.get_front(entities),0)
pos=v3(this.get_front(entities))
return pos
}
private selectTeamFront(){