Files
bl/logic/service/fight/effect/effect_439.go
xinian 09da1dc253
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构战斗技能使用节点
2026-03-08 19:42:47 +08:00

45 lines
740 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
/**
* 439
*/
func init() {
input.InitEffect(input.EffectType.Skill, 439, &Effect439{})
}
type Effect439 struct {
node.EffectNode
}
func (e *Effect439) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0])
}
func (e *Effect439) Skill_Use() bool {
var isprop bool
for _, v := range e.Ctx().Our.Prop {
if v < 0 {
isprop = true
}
}
if e.Ctx().Our.StatEffect_Exist_all() || isprop {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[1],
})
}
return true
}