Files
bl/logic/service/fight/effect/476.go
xinian f35af82bec
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 优化先手判断逻辑,增加IsFirst接口
2026-03-09 12:28:37 +08:00

29 lines
567 B
Go

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
// 476 - 后出手时恢复m点体力
type Effect476 struct {
node.EffectNode
}
func (e *Effect476) OnSkill() bool {
if e.IsFirst() {
return true
}
healAmount := alpacadecimal.NewFromInt(int64(e.Args()[0].IntPart()))
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, healAmount)
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 476, &Effect476{})
}