Files
bl/logic/service/fight/effect/effect_467.go
xinian de8ce9fc81
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
feat: 新增多个战斗效果并修复逻辑问题
2026-03-07 14:51:32 +08:00

34 lines
528 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{})
}
type Effect467 struct {
node.EffectNode
}
func (e *Effect467) OnSkill() 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
}