Files
bl/logic/service/fight/effect/420.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

30 lines
610 B
Go

package effect
import (
"blazing/logic/service/fight/input"
)
// Effect 420: 使用了该技能后,若受到消除强化类技能攻击,则对方攻击和特攻等级{0}
type Effect420 struct {
FixedDurationNeg1Base
}
func (e *Effect420) PropBefer(in *input.Input, prop int8, level int8) bool {
if in == e.Ctx().Our {
return true
}
//能力下降类
if level == 0 {
e.Ctx().Opp.SetProp(e.Ctx().Our, 0, int8(e.SideEffectArgs[0]))
e.Ctx().Opp.SetProp(e.Ctx().Our, 1, int8(e.SideEffectArgs[0]))
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 420, &Effect420{})
}