Files
bl/logic/service/fight/effect/effect_423.go
xinian 9c6f3988de
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构 CurrentPet 为 CurPet
2026-04-04 04:34:43 +08:00

31 lines
641 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 423: 直接造成等同于对手防御值的固定伤害
type Effect423 struct {
node.EffectNode
}
func (e *Effect423) OnSkill() bool {
defenseValue := alpacadecimal.NewFromInt(int64(e.Ctx().Opp.CurPet[0].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{})
}