Files
bl/logic/service/fight/effect/effect_467.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

35 lines
597 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
/**
* 467
*/
func init() {
input.InitEffect(input.EffectType.Skill, 467, &Effect467{})
}
// Effect 467: 若对手处于{0}状态则附加{1}点固定伤害
type Effect467 struct {
node.EffectNode
}
func (e *Effect467) Skill_Use() bool {
if e.Ctx().Opp.StatEffect_Exist(info.EnumPetStatus(e.Args()[0].IntPart())) {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[1],
})
}
return true
}