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

32 lines
652 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
/**
* 恢复自身最大体力的1/n
*/
func init() {
input.InitEffect(input.EffectType.Skill, 43, &Effect43{})
}
type Effect43 struct {
node.EffectNode
}
2025-11-11 05:54:24 +00:00
func (e *Effect43) OnSkill() bool {
tt := alpacadecimal.NewFromInt(int64(e.Ctx().Our.CurrentPet.Info.MaxHp)).Div(alpacadecimal.NewFromInt(int64(e.SideEffectArgs[0])))
//fmt.Println("恢复自身最大体量的1/n", tt.IntPart())
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, tt)
return true
}