Files
bl/logic/service/fight/effect/468.go
昔念 c999ac4c8b ```
refactor(fight/effect): 修改战斗效果实现逻辑

移除了多个过时的效果实现,包括:
- 移除效果165:n回合内每回合防御和特防等级+m
- 移除效果184:若对手处于能力提升状态则触发效果
- 移除效果430:消除对手能力强化状态相关逻辑
- 移除效果468:回合开始时处理能力下降状态
- 移除效果471:先出手时免疫异常状态
- 移除效果453:消除对手能力强化
2026-03-09 00:07:19 +08:00

39 lines
670 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 468 - 回合开始时,若自身处于能力下降状态,则威力翻倍,同时解除能力下降状态
type Effect468 struct {
node.EffectNode
}
func (e *Effect468) SkillHit() bool {
if e.Ctx().SkillEntity == nil {
return true
}
ispwoer := false
for i, v := range e.Ctx().Our.Prop[:] {
if v < 0 {
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), 0)
ispwoer = true
return true
}
}
if ispwoer {
// 威力翻倍
e.Ctx().SkillEntity.Power *= 2
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 468, &Effect468{})
}