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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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{})
|
||||
|
||||
}
|
||||
|
||||
@@ -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{})
|
||||
|
||||
}
|
||||
|
||||
@@ -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]))
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user