怪物 改为3条直线 进入, 攻击动画 直线的已改, 抛物线和群攻的 也需要修改
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user