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

28 lines
550 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 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{})
}