```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

fix(fight): 修复技能效果ID配置错误

- 修复NewSeIdx_66.go中空指针检查,避免程序崩溃
- 修正effect/407.go中技能ID从138改为407
- 修正effect/440.go中技能ID从138改为440,并修复类型引用错误
- 修正effect/523.go中属性设置对象错误,从Ctx().Opp改为Ctx().Our
- 修正effect_517.go中技能ID从452改为517
```
This commit is contained in:
昔念
2026-03-11 23:38:51 +08:00
parent f091748542
commit bd09013d85
7 changed files with 53 additions and 4 deletions

View File

@@ -15,6 +15,9 @@ func (e *NewSel66) Skill_Use() bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
return true
}
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().SkillEntity.Category() != info.Category.PHYSICAL {
return true
}

View File

@@ -15,6 +15,9 @@ func (e *NewSel67) Skill_Use() bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
return true
}
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().SkillEntity.Category() != info.Category.SPECIAL {
return true
}

View File

@@ -37,6 +37,6 @@ func (e *Effect407_sub) ActionStart(fattack *action.SelectSkillAction, sattack *
}
func init() {
input.InitEffect(input.EffectType.Skill, 138, &Effect407{})
input.InitEffect(input.EffectType.Skill, 407, &Effect407{})
}

View File

@@ -30,6 +30,6 @@ func (e *Effect440_sub) HookPP(count *int) bool {
}
func init() {
input.InitEffect(input.EffectType.Skill, 138, &Effect407{})
input.InitEffect(input.EffectType.Skill, 440, &Effect440{})
}

View File

@@ -15,7 +15,7 @@ func (e *Effect523) Action_end() bool {
if e.Ctx().Opp.CurrentPet.Info.Hp > 0 {
// 提升自身的全部能力等级
for i := 0; i < 6; i++ {
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), int8(e.SideEffectArgs[i]))
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), int8(e.SideEffectArgs[i]))
}

View File

@@ -35,5 +35,5 @@ func (e *Effect517) OnSkill() bool {
}
func init() {
input.InitEffect(input.EffectType.Skill, 452, &Effect517{})
input.InitEffect(input.EffectType.Skill, 517, &Effect517{})
}

View File

@@ -0,0 +1,43 @@
package admin
import (
"blazing/cool"
"blazing/modules/player/service"
"context"
"github.com/gogf/gf/v2/frame/g"
)
type PVPController struct {
*cool.Controller
}
func init() {
var task_info_controller = &PVPController{
&cool.Controller{
Prefix: "/admin/game/pvp",
Api: []string{"Delete", "Update", "Info", "List", "Page"},
Service: service.NewPVPService(0), //因为page已经过滤所以这里需要改成0
},
}
// 注册路由
cool.RegisterController(task_info_controller)
}
type GetPVPReq struct {
g.Meta `path:"/get" method:"POST"`
}
func (c *PVPController) Get(ctx context.Context, req *GetPVPReq) (res *cool.BaseRes, err error) {
res = &cool.BaseRes{}
//var ret []TitleRes
var (
admin = cool.GetAdmin(ctx)
//r = g.RequestFromCtx(ctx)
)
alltitile := service.NewPVPService(uint32(admin.UserId)).Get(uint32(admin.UserId))
res.Data = alltitile
return
}