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

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

42 lines
837 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 430 - 消除对手能力强化状态若消除状态成功则自身XX等级m
type Effect430 struct {
node.EffectNode
}
func (e *Effect430) Skill_Use() bool {
var isadd bool
// 检查对手是否有能力强化状态
for i, v := range e.Ctx().Opp.Prop[:] {
if v > 0 {
if e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), 0) {
isadd = true
}
return true
}
}
if !isadd {
return true
}
// 如果成功消除了状态,提升自身能力等级
effectType := int8(e.Args()[0].IntPart()) // XX类型
effectValue := int8(e.Args()[1].IntPart()) // 等级m
e.Ctx().Our.SetProp(e.Ctx().Our, effectType, effectValue)
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 184, &Effect184{})
}