Files
bl/logic/service/fight/effect/476.go

29 lines
575 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
// Effect 476: 后出手时恢复{0}点体力
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() {
2026-03-09 00:58:32 +08:00
input.InitEffect(input.EffectType.Skill, 476, &Effect476{})
}