解决修改后的bug

This commit is contained in:
2025-07-22 17:06:28 +08:00
parent a5ed2f5784
commit cde7da64ad
5 changed files with 9 additions and 6 deletions

View File

@@ -89,8 +89,9 @@ export class Hero extends ecs.Entity {
hv.speed =hv.ospeed = hero.speed;
hv.dis = hero.dis;
hv.cd = hero.cd
hv.hp= hv.hp_max =hero.hp+info.hp
hv.hp= hv.hp_max = hv.hp_base=hero.hp+info.hp
hv.ap = hero.ap+info.ap;
hv.ap_base=hero.ap+info.ap;
hero.buff.forEach((buff:any)=>{
switch(buff.buff_type){
case BuffAttr.CRITICAL: