31 lines
653 B
Go
31 lines
653 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/action"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// 452 - n回合内自身所有攻击造成的伤害都将为自己恢复体力
|
|
type Effect452 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect452) Skill_Use() bool {
|
|
damageDone := e.Ctx().Our.SumDamage
|
|
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, damageDone)
|
|
|
|
return true
|
|
}
|
|
|
|
func (e *Effect452) SetArgs(t *input.Input, a ...int) {
|
|
|
|
e.EffectNode.SetArgs(t, a...)
|
|
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0])
|
|
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.NewSel, 452, &Effect452{})
|
|
}
|