Files
bl/logic/service/fight/effect/428.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

33 lines
561 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 428: 遇到天敌时附加{0}点固定伤害
type Effect428 struct {
node.EffectNode
}
func (e *Effect428) Skill_Use() bool {
if !e.ISNaturalEnemy() {
return true
}
damageZone := &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[0],
}
e.TargetInput().Damage(e.CarrierInput(), damageZone)
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 428, &Effect428{})
}