Files
bl/logic/service/fight/effect/effect_405_402.go
xinian 02629b6f6c
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
feat: 新增多个技能效果实现
2026-03-07 13:54:42 +08:00

37 lines
712 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
func init() {
input.InitEffect(input.EffectType.Skill, 405, &Effect405{
EffectNode: node.EffectNode{},
isfrist: true,
})
input.InitEffect(input.EffectType.Skill, 402, &Effect405{
EffectNode: node.EffectNode{},
isfrist: false,
})
}
type Effect405 struct {
node.EffectNode
isfrist bool
}
func (e *Effect405) OnSkill() bool {
if e.Input.FightC.IsFirst(e.Input.Player) == e.isfrist {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Ctx().Opp.CurrentPet.GetHP().Div(e.Args()[0]),
})
}
return true
}