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

37 lines
614 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, 413, &Effect413{})
}
// Effect 413: 若对手处于能力提升状态则附加{0}点固定伤害
type Effect413 struct {
node.EffectNode
}
func (e *Effect413) OnSkill() bool {
var isprop bool
for _, v := range e.Ctx().Opp.Prop {
if v > 0 {
isprop = true
}
}
if isprop {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[0],
})
}
return true
}