Files
bl/logic/service/fight/effect/561.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

28 lines
556 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.CurrentPet.GetHP().IntPart() == 0 {
e.Ctx().Our.CurrentPet.Info.Hp = e.Ctx().Our.CurrentPet.Info.MaxHp
}
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 561, &Effect561{})
}