Files
bl/logic/service/fight/effect/effect_439.go
xinian bbaa71f4b2
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构宠物初始化逻辑
提取宠物配置初始化到ConfigBoss方法,简化initplayer代码
2026-03-07 11:30:17 +08:00

46 lines
741 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) Action_end() 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
}