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

40 lines
571 B
Go

package effect
import (
"blazing/logic/service/fight/input"
)
// Effect 528: 先出手时{0}回合内不受能力下降技能影响
type Effect528 struct {
RoundEffectArg0Base
}
func (e *Effect528) OnSkill() bool {
// 检查是否先出手
if !e.IsFirst() {
e.Alive(false)
}
return true
}
func (e *Effect528) PropBefer(in *input.Input, prop int8, level int8) bool {
if in == e.Ctx().Our {
return true
}
//能力下降类
if level < 0 {
return false
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 528, &Effect528{})
}