Files
bl/logic/service/fight/effect/effect_43.go
xinian 9c6f3988de
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构 CurrentPet 为 CurPet
2026-04-04 04:34:43 +08:00

30 lines
576 B
Go

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
/**
* 恢复自身最大体力的1/n
*/
func init() {
input.InitEffect(input.EffectType.Skill, 43, &Effect43{})
}
// Effect 43: 恢复自身最大体力的1/{0}
type Effect43 struct {
node.EffectNode
}
func (e *Effect43) OnSkill() bool {
//fmt.Println("恢复自身最大体量的1/n", tt.IntPart())
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, e.Ctx().Our.CurPet[0].GetMaxHP().Div(e.Args()[0]))
return true
}