2025-11-25 18:25:52 +08:00
|
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2026-01-03 01:35:32 +08:00
|
|
|
|
"blazing/logic/service/fight/action"
|
2025-11-25 18:25:52 +08:00
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// 41. 每回合恢复自身n点体力;(a1: n)
|
|
|
|
|
|
// TODO: 实现每回合恢复自身n点体力;(a1: n)的核心逻辑
|
|
|
|
|
|
type NewSel41 struct {
|
|
|
|
|
|
NewSel0
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-04 22:10:34 +08:00
|
|
|
|
func (e *NewSel41) ComparePre(fattack *action.SelectSkillAction, sattack *action.SelectSkillAction) bool {
|
2026-01-03 01:35:32 +08:00
|
|
|
|
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
|
|
|
|
|
|
return true
|
|
|
|
|
|
}
|
2025-11-26 18:39:23 +08:00
|
|
|
|
|
2026-01-03 01:35:32 +08:00
|
|
|
|
if sattack == nil { //说明有一方放弃出手,如果自身被控那也不能回血
|
|
|
|
|
|
return true
|
|
|
|
|
|
}
|
2025-12-06 15:11:42 +08:00
|
|
|
|
e.Ctx().Our.Heal(e.Ctx().Our, nil, e.Args()[0])
|
2026-01-03 01:35:32 +08:00
|
|
|
|
return true
|
2025-11-26 18:39:23 +08:00
|
|
|
|
}
|
2025-11-25 18:25:52 +08:00
|
|
|
|
func init() {
|
|
|
|
|
|
input.InitEffect(input.EffectType.NewSel, 41, &NewSel41{})
|
|
|
|
|
|
}
|