Files
bl/logic/service/fight/boss/NewSeIdx_41.go
昔念 a62b94446a ```
feat(pet): 添加精灵进化功能并优化融合系统

- 新增PetELV方法实现精灵进化功能,支持分支进化选择
- 添加进化相关的数据结构定义
- 实现进化材料检查和扣除逻辑
- 优化宠物融合失败处理机制

fix(fight): 修复战斗系统和效果计算问题

- 修复NewSeIdx_11和effect_60中的伤害计算逻辑
- 修复战斗状态判断条件,避免非PVP模式下的错误处理
- 优化战斗回合处理流程,修复效果缓存清空时机
- 修复effect_69
2026-01-03 01:35:32 +08:00

28 lines
707 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
)
// 41. 每回合恢复自身n点体力a1: n
// TODO: 实现每回合恢复自身n点体力a1: n的核心逻辑
type NewSel41 struct {
NewSel0
}
func (e *NewSel41) Compare_Pre(fattack *action.SelectSkillAction, sattack *action.SelectSkillAction) bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
return true
}
if sattack == nil { //说明有一方放弃出手,如果自身被控那也不能回血
return true
}
e.Ctx().Our.Heal(e.Ctx().Our, nil, e.Args()[0])
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 41, &NewSel41{})
}