魔法盾改为伤害减免

This commit is contained in:
2025-01-09 16:45:45 +08:00
parent 2903e06ed4
commit 4145b04768
6 changed files with 30 additions and 20 deletions

View File

@@ -60,7 +60,7 @@ export class SkillCom extends CCComp {
this.is_destroy=true
}
}
if(otCol.group == seCol.group&&otCol.tag ==0&&this.tg==2){
if(otCol.group == seCol.group&&otCol.tag ==0&&(this.tg==2||this.tg==0)){
this.to_console("skill onBeginContact 是对自己人的buff",seCol,otCol)
this.do_buff(otCol.node.getComponent(HeroViewComp))
}
@@ -82,7 +82,8 @@ export class SkillCom extends CCComp {
}
if(SkillSet[this.s_uuid].shield > 0){ //buff护盾
hero.add_shield(SkillSet[this.s_uuid].shield/(this.in_time/this.cd))
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)
}
}