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

30 lines
627 B
Go
Raw Normal View History

2026-03-07 23:54:01 +08:00
package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 189 - n回合内若受到攻击对手攻击等级-1、特攻等级-1
type Effect189 struct {
node.EffectNode
}
func (e *Effect189) Skill_Use_ex() bool {
if e.Ctx().SkillEntity == nil {
return true
}
e.Ctx().Opp.SetProp(e.Ctx().Our, 0, -1)
e.Ctx().Opp.SetProp(e.Ctx().Our, 2, -1)
2026-03-07 23:54:01 +08:00
return true
}
func (e *Effect189) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(a[0]) // 持续n回合
}
func init() {
input.InitEffect(input.EffectType.NewSel, 189, &Effect189{})
}