Files
bl/logic/service/fight/effect/1146.go
xinian 78a68148ce
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
chore: update fight logic and effect implementations
2026-04-05 02:25:44 +08:00

39 lines
699 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
func init() {
input.InitEffect(input.EffectType.Skill, 1146, &Effect1146{})
}
// Effect 1146: 双方每处于{0}种能力提升状态则附加{1}点固定伤害
type Effect1146 struct {
node.EffectNode
}
func (e *Effect1146) OnSkill() bool {
// 1. 命中判定失败,不触发
count := 0
for _, v := range e.TargetInput().Prop[:] {
if v > 0 {
count++
}
}
if count < e.SideEffectArgs[0] {
return true
}
e.TargetInput().Damage(e.CarrierInput(), &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[1],
})
return true
}