Files
bl/logic/service/fight/effect/489.go

28 lines
629 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 489: 若自身处于能力提升状态则每次攻击恢复自身体力的1/{0}
type Effect489 struct {
node.EffectNode
}
func (e *Effect489) SkillHit_ex() bool {
if e.CarrierInput().HasPropADD() {
maxHp := e.CarrierInput().CurPet[0].GetMaxHP()
healAmount := maxHp.Div(e.Args()[0]) // 1/m
e.CarrierInput().Heal(e.CarrierInput(), &action.SelectSkillAction{}, healAmount)
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 489, &Effect489{})
}