41
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-03-07 23:54:01 +08:00
parent 54a4876beb
commit d367f9d1d4
26 changed files with 3761 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
// 515 - 自身处于能力下降状态时附加n点固定伤害并解除这些能力下降状态
type Effect515 struct {
node.EffectNode
}
func (e *Effect515) OnSkill() bool {
var is bool
for i := 0; i < 6; i++ {
if e.Ctx().Our.Prop[i] < 0 {
is = true
}
}
if !is {
return true
}
fixedDamage := alpacadecimal.NewFromInt(int64(e.Args()[0].IntPart()))
damageZone := &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: fixedDamage,
}
e.Ctx().Opp.Damage(e.Ctx().Our, damageZone)
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 515, &Effect515{})
}