Files
bl/logic/service/fight/effect/effect_28.go

32 lines
531 B
Go
Raw Normal View History

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
}
2025-11-11 05:54:24 +00:00
func (e *Effect28) OnSkill() bool {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
2025-11-11 05:54:24 +00:00
Type: info.DamageType.Fixed,
Damage: e.Ctx().Opp.CurrentPet.GetHP().Div(e.Args()[0]),
2025-11-11 05:54:24 +00:00
})
return true
}