30 lines
599 B
Go
30 lines
599 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/action"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 558: 若自身不处于能力提升或下降状态时则恢复{0}点体力
|
|
type Effect558 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect558) Skill_Use() bool {
|
|
|
|
if e.Ctx().Our.HasPropADD() || e.Ctx().Our.HasPropSub() { // 先出手
|
|
|
|
// 回复1/n的最大体力值
|
|
return true
|
|
|
|
}
|
|
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, e.Args()[0])
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 558, &Effect558{})
|
|
|
|
}
|