Files
bl/logic/service/fight/effect/554.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

26 lines
527 B
Go

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 554: 自身处于能力下降状态时恢复所有体力
type Effect554 struct {
node.EffectNode
}
func (e *Effect554) Skill_Use() bool {
if !e.Ctx().Our.HasPropSub() {
return true
}
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, e.Ctx().Our.CurrentPet.GetMaxHP())
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 554, &Effect554{})
}