Files
bl/logic/service/fight/effect/effect_29.go

35 lines
576 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
/**
* 额外增加n点固定伤害
*/
func init() {
input.InitEffect(input.EffectType.Skill, 29, &Effect29{
EffectNode: node.EffectNode{},
})
}
type Effect29 struct {
node.EffectNode
}
2025-11-11 05:54:24 +00:00
func (e *Effect29) OnSkill() bool {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
2025-11-11 05:54:24 +00:00
Type: info.DamageType.Fixed,
Damage: alpacadecimal.NewFromInt(int64(e.SideEffectArgs[0])),
2025-11-11 05:54:24 +00:00
})
return true
}