29 lines
595 B
Go
29 lines
595 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.Input.FightC.IsFirst(e.Input.Player) {
|
|
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{})
|
|
|
|
}
|