Files
bl/logic/service/fight/boss/NewSeIdx_223.go
xinian 9c6f3988de
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 重构 CurrentPet 为 CurPet
2026-04-04 04:34:43 +08:00

30 lines
651 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"github.com/alpacahq/alpacadecimal"
)
// 223. 必定秒杀
type NewSel223 struct {
NewSel0
}
func (e *NewSel223) Skill_Use() bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurPet[0].Info.CatchTime {
return true
}
if int(e.Ctx().Opp.CurPet[0].Type) == int(e.Args()[0].IntPart()) {
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{Type: info.DamageType.Fixed,
Damage: alpacadecimal.NewFromInt(int64(e.Ctx().Opp.GetPetInfo().Info.MaxHp))})
}
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 223, &NewSel223{})
}