光环和装备加成 都改为buff 不再使用buff

This commit is contained in:
panfudan
2025-06-25 13:44:51 +08:00
parent 03456dd990
commit 2b5ed007b4
5 changed files with 39 additions and 26 deletions

View File

@@ -445,9 +445,9 @@ export class HeroViewComp extends CCComp {
if(this.is_boss) {buff_key="enemy"}
if(this.is_kalami) {buff_key="enemy"}
if(buff_key==null) return
let debuff=this.FIGHTCON[buff_key+"_debuff"]
let buff=this.FIGHTCON[buff_key+"_buff"]
damage=remainingDamage*(100-(buff.DEF+def)+(debuff.BURN+Burn))/100
damage=remainingDamage*(100-(buff.DEF+def)+Burn)/100
return Math.floor(damage)
}