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{}) }