Files
bl/logic/service/fight/boss/NewSeIdx_41.go
昔念 0051ac0be8
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
```
feat(fight): 添加旧组队协议支持并优化战斗系统

- 实现了旧组队协议相关功能,包括GroupReadyFightFinish、GroupUseSkill、
  GroupUseItem、GroupChangePet和GroupEscape方法
- 新增组队战斗相关的入站信息结构体定义
- 实现了组队BOSS战斗逻辑,添加groupBossSlotLimit常量
- 重构宠物技能设置逻辑,调整金币消耗时机
- 优化战斗循环逻辑,添加对无行动槽位的处理
- 改进AI行动逻辑,增加多位置目标选择
2026-04-08 01:28:55 +08:00

27 lines
544 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/input"
)
// 41. 每回合恢复自身n点体力a1: n
// TODO: 实现每回合恢复自身n点体力a1: n的核心逻辑
type NewSel41 struct {
NewSel0
}
func (e *NewSel41) Skill_Use() bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurPet[0].Info.CatchTime {
return true
}
if e.Ctx().SkillEntity == nil {
return true
}
e.Ctx().Our.Heal(e.Ctx().Our, nil, e.Args()[0])
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 141, &NewSel41{})
}