Files
bl/logic/service/fight/effect/477.go

33 lines
690 B
Go
Raw Normal View History

2026-03-08 15:26:07 +08:00
package effect
import (
"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))
2026-03-08 15:26:07 +08:00
}
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{})
}