diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index fa801b34..b742c232 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -733,6 +733,7 @@ export class HeroViewComp extends CCComp { } add_shield(shield:number){ this.shield =shield + console.log("shield:",shield); } add_hp(hp: number=0){ this.BUFFCOMP.heathed(); diff --git a/assets/script/game/skills/SkillCom.ts b/assets/script/game/skills/SkillCom.ts index 9c504e5f..68993ca1 100644 --- a/assets/script/game/skills/SkillCom.ts +++ b/assets/script/game/skills/SkillCom.ts @@ -83,7 +83,7 @@ export class SkillCom extends CCComp { if(SkillSet[this.s_uuid].shield > 0){ //buff护盾 console.log("do_buff shield: ",SkillSet[this.s_uuid].shield*this.ap/(this.in_time/this.cd)) - hero.add_shield(SkillSet[this.s_uuid].shield) + hero.add_shield(SkillSet[this.s_uuid].shield*this.ap/(this.in_time/this.cd)) } }