Files
bl/logic/service/fight/effect/561.go
xinian 9c6f3988de
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构 CurrentPet 为 CurPet
2026-04-04 04:34:43 +08:00

28 lines
553 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/input"
"blazing/logic/service/fight/node"
)
// Effect 561: 先出手时当回合对手使用技能后若自身体力为0则令自身体力等于最大体力
type Effect561 struct {
node.EffectNode
can bool
}
func (e *Effect561) Skill_Use_ex() bool {
if e.IsFirst() {
if e.Ctx().Our.CurPet[0].GetHP().IntPart() == 0 {
e.Ctx().Our.CurPet[0].Info.Hp = e.Ctx().Our.CurPet[0].Info.MaxHp
}
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 561, &Effect561{})
}