Files
bl/logic/service/fight/boss/NewSeIdx_54.go
2026-04-04 04:28:04 +08:00

36 lines
770 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
// 54. 每回合结束后敌我双方扣除n体力值a1: n
type NewSel54 struct {
NewSel0
}
func (e *NewSel54) Skill_Use_ex() bool {
//魂印特性有不在场的情况,绑定时候将精灵和特性绑定
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet[0].Info.CatchTime {
return true
}
// 扣除我方体力
e.Ctx().Our.Damage(e.Ctx().Our, &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[0],
})
// 扣除敌方体力
e.Ctx().Opp.Damage(e.Ctx().Opp, &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[0],
})
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 54, &NewSel54{})
}