25 lines
550 B
Go
25 lines
550 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/action"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 575: 对手处于任意异常状态时造成的伤害将全额恢复体力
|
|
type Effect575 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect575) Skill_Use_ex() bool {
|
|
if e.Ctx().Opp.StatEffect_Exist_all() {
|
|
damage := e.Ctx().Our.SumDamage
|
|
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, damage)
|
|
}
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 575, &Effect575{})
|
|
}
|