2026-03-09 22:36:30 +08:00
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
)
|
|
|
|
|
|
2026-03-28 21:57:22 +08:00
|
|
|
// Effect 420: 使用了该技能后,若受到消除强化类技能攻击,则对方攻击和特攻等级{0}
|
2026-03-09 22:36:30 +08:00
|
|
|
type Effect420 struct {
|
2026-03-28 21:57:22 +08:00
|
|
|
FixedDurationNeg1Base
|
2026-03-09 22:36:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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{})
|
|
|
|
|
|
|
|
|
|
}
|