Files
bl/logic/service/fight/effect/effect_28.go
xinian 03d93a2fba
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
fix: 修正伤害类型和任务状态判断逻辑
2026-03-05 17:40:42 +08:00

32 lines
533 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
/**
* 降低对方 1/n 的 体力
*/
func init() {
input.InitEffect(input.EffectType.Skill, 28, &Effect28{
EffectNode: node.EffectNode{},
})
}
type Effect28 struct {
node.EffectNode
}
func (e *Effect28) OnSkill() bool {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
Type: info.DamageType.Percent,
Damage: e.Ctx().Opp.CurrentPet.GetHP().Div(e.Args()[0]),
})
return true
}