diff --git a/assets/script/game/hero/HeroAttrsSystem.ts b/assets/script/game/hero/HeroAttrsSystem.ts index 2cd4597e..7f567bfc 100644 --- a/assets/script/game/hero/HeroAttrsSystem.ts +++ b/assets/script/game/hero/HeroAttrsSystem.ts @@ -87,11 +87,6 @@ export class HeroAttrSystem extends ecs.ComblockSystem // 2. HP/MP 自然回复(业务规则) // 加上回血/回蓝属性的影响 const hpRegen = model.Attrs[Attrs.HP_REGEN] || 0; - const mpRegen = model.Attrs[Attrs.MP_REGEN] || 0; - - // model.hp += HRegen.HP + hpRegen; - // model.add_hp(HRegen.HP + hpRegen, true); - // 回血逻辑 + 视图表现 const totalHpRegen = HRegen.HP + hpRegen; if (totalHpRegen > 0) { @@ -101,10 +96,6 @@ export class HeroAttrSystem extends ecs.ComblockSystem if (view) { view.health(totalHpRegen); } - } else if (totalHpRegen < 0) { - // 如果是扣血(虽然叫 regen),走正常的扣血逻辑? - // 暂时按原样处理,只处理正向回血的特效 - model.add_hp(totalHpRegen, false); } }