This commit is contained in:
2025-06-30 17:26:38 +08:00
parent ded1b36cfb
commit 9b5c2f8fc8
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ export class HeroViewComp extends CCComp {
}
this.BUFFCOMP.vmdata_update()
this.BUFFCOMP.tooltip(TooltipTypes.apup,ap.toFixed(0));
oops.message.dispatchEvent(GameEvent.APChange,{fac:this.fac})
oops.message.dispatchEvent(GameEvent.APChange,{is_master:this.is_master,fac:this.fac})
}
de_ap(ap: number,is_num:boolean=true){

View File

@@ -59,7 +59,7 @@ export class BarCompComp extends CCComp {
}
private ap_change(e:any,data:any){
console.log("[barcomp]:ap_change",data)
if(data.fac==FacSet.HERO){
if(data.is_master==true){
let barNode = this.node.getChildByName("bar").getChildByName("ap").getChildByName("val")
tween(barNode).to(0.2, {scale:v3(1.5,1.5,1)},{
onComplete:()=>{