Files
bl/logic/service/fight/effect/effect_423.go
xinian 3dd2d40c50
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 新增多个战斗技能效果实现
2026-03-08 10:34:23 +08:00

31 lines
636 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
// 423 - 直接造成等同于对手防御值的固定伤害
type Effect423 struct {
node.EffectNode
}
func (e *Effect423) OnSkill() bool {
defenseValue := alpacadecimal.NewFromInt(int64(e.Ctx().Opp.CurrentPet.Info.Prop[1]))
damageZone := &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: defenseValue,
}
e.Ctx().Opp.Damage(e.Ctx().Our, damageZone)
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 423, &Effect423{})
}