26 lines
527 B
Go
26 lines
527 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/action"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 554: 自身处于能力下降状态时恢复所有体力
|
|
type Effect554 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect554) Skill_Use() bool {
|
|
if !e.Ctx().Our.HasPropSub() {
|
|
return true
|
|
}
|
|
|
|
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, e.Ctx().Our.CurrentPet.GetMaxHP())
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 554, &Effect554{})
|
|
}
|