Files
bl/logic/service/fight/effect/486.go
昔念 d16e079725 ```
fix(fight): 修复效果持续时间设置错误和命中计算参数类型问题

- 修正Effect461中Duration参数从-1改为1,解决持续时间异常问题
- 删除Effect486文件,移除废弃的效果实现
- 修正processSkillAttack中AttackTimeC参数类型,从int转为正确类型
- 在copySkill中添加Accuracy属性复制,解决技能命中丢失问题
- 修正CalculateRealValue函数stat参数类型从int改为int8
- 修正AttackTimeC和GetAccuracy函数level参数类型从int改为int8
- 优化Get
2026-03-09 19:16:17 +08:00

38 lines
638 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 486 - 下n回合若自身选择使用技能则无视对手能力提升状态
type Effect486 struct {
node.EffectNode
can bool
}
func (e *Effect486) Skill_Use() bool {
e.can = true
return true
}
func (e *Effect486) CalculatePre() bool {
if !e.can {
return true
}
e.Ctx().Opp.Prop = [6]int8{}
return true
}
func (e *Effect486) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(a[0]) // 持续m回合
}
func init() {
input.InitEffect(input.EffectType.Skill, 486, &Effect486{})
}