Files
bl/logic/service/fight/effect/477.go
xinian 6c75b106b3
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构战斗效果实现
2026-03-08 15:26:07 +08:00

34 lines
750 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/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 477 - n回合内若受到攻击则对手攻击防御特攻特防速度命中等级降低
type Effect477 struct {
node.EffectNode
}
func (e *Effect477) Skill_Use_ex() bool {
if e.Ctx().SkillEntity == nil {
return true
}
for i, effectId := range e.SideEffectArgs[1:] {
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), int8(effectId), info.AbilityOpType.SUB)
}
return true
}
func (e *Effect477) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(a[0]) // 持续n回合
}
func init() {
input.InitEffect(input.EffectType.Skill, 477, &Effect477{})
}