Files
bl/logic/service/fight/effect/538.go
xinian 1e37d71878
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
fix: 修复属性设置逻辑
2026-03-17 10:57:11 +08:00

43 lines
662 B
Go

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
type Effect538 struct {
node.EffectNode
}
func (e *Effect538) Skill_Use() bool {
if e.Ctx().SkillEntity == nil {
return true
}
isadd := false
// 消除对手所有能力强化状态
for i, v := range e.Ctx().Opp.Prop[:] {
if v > 0 {
if e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), 0) {
isadd = true
}
}
}
if isadd {
for i, v := range e.SideEffectArgs[1:] {
if v != 0 {
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), int8(v))
}
}
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 538, &Effect538{})
}