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

27 lines
519 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
// Effect 447: 造成的伤害不少于{0}
type Effect447 struct {
node.EffectNode
}
func (e *Effect447) DamageLock(t *info.DamageZone) bool {
if t.Type != info.DamageType.Red {
return true
}
t.Damage = alpacadecimal.Max(e.Args()[0], t.Damage)
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 447, &Effect447{})
}