29 lines
575 B
Go
29 lines
575 B
Go
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() {
|
|
input.InitEffect(input.EffectType.Skill, 476, &Effect476{})
|
|
|
|
}
|