fix(fight): 战斗修改

This commit is contained in:
1
2025-11-11 05:54:24 +00:00
parent c6e0d84c1d
commit 65758c799e
44 changed files with 656 additions and 731 deletions

View File

@@ -5,23 +5,23 @@ import (
"blazing/logic/service/fight/input"
)
func (e *EffectNode) Skill_Pre(ctx input.Ctx) bool {
func (e *EffectNode) Skill_Pre() bool {
return true
}
func (e *EffectNode) Calculate_Pre(ctx input.Ctx) bool {
func (e *EffectNode) Calculate_Pre() bool {
return true
}
func (e *EffectNode) Skill_Hit_Pre(ctx input.Ctx) bool {
func (e *EffectNode) Skill_Hit_Pre() bool {
return true
}
func (e *EffectNode) Skill_Hit(ctx input.Ctx) bool {
func (e *EffectNode) Skill_Hit() bool {
return true
}
func (e *EffectNode) Skill_Hit_to(ctx input.Ctx) bool {
func (e *EffectNode) Skill_Hit_ex() bool {
return true
}
func (e *EffectNode) OnSkill(ctx input.Ctx) bool {
func (e *EffectNode) OnSkill() bool {
// if e.Effect != nil {
// if e.Hit() { //没命中
// e.Effect.OnHit(ctx.Input, ctx.SkillEntity)
@@ -32,15 +32,15 @@ func (e *EffectNode) OnSkill(ctx input.Ctx) bool {
return true
}
func (e *EffectNode) Skill_Can(ctx input.Ctx) bool {
func (e *EffectNode) Skill_Can() bool {
return e.Input.CurrentPet.HP != 0
}
func (e *EffectNode) Skill_Use(ctx input.Ctx) bool {
func (e *EffectNode) Skill_Use_ex() bool {
return true
}
func (e *EffectNode) Skill_Useed(ctx input.Ctx) bool {
func (e *EffectNode) Skill_Useed() bool {
// if e.Effect != nil {
// if e.Input.CurrentPet.Info.Hp == 0 {
// e.OnDefeat(ctx.Input, ctx.SkillEntity) //死亡