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{}) }