2025-11-14 04:23:50 +08:00
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/action"
|
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
"blazing/logic/service/fight/node"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 若Miss则自己恢复1/n体力
|
|
|
|
|
*/
|
|
|
|
|
type Effect136 struct {
|
|
|
|
|
node.EffectNode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
ret := &Effect136{}
|
|
|
|
|
|
|
|
|
|
input.InitEffect(input.EffectType.Skill, 136, ret)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 命中之后
|
2026-01-04 22:10:34 +08:00
|
|
|
func (e *Effect136) SkillHit() bool {
|
2026-01-04 21:41:10 +08:00
|
|
|
|
|
|
|
|
if e.Ctx().SkillEntity == nil {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if e.Ctx().SkillEntity.AttackTime != 0 {
|
|
|
|
|
return true
|
2025-11-14 04:23:50 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-04 22:10:34 +08:00
|
|
|
heal := e.Ctx().Our.CurrentPet.GetMaxHP().Div(e.Args()[0])
|
|
|
|
|
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, heal)
|
2026-01-04 21:41:10 +08:00
|
|
|
|
2025-11-14 04:23:50 +08:00
|
|
|
return true
|
|
|
|
|
}
|