魔法盾改为伤害减免
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user