编辑文件 fight_base.go
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-02-24 00:27:17 +08:00
committed by cnb
parent 467890a60b
commit 68ff96ae84

View File

@@ -58,6 +58,11 @@ func (h Controller) Capture(data *fight.CatchMonsterInboundInfo, c *player.Playe
if err := h.checkFightStatus(c); err != 0 {
return nil, err
}
if c.GetSpace().IsTime {
if data.ItemId < 300009 {
return nil, errorcode.ErrorCodes.ErrCannotPerformAction
}
}
defer c.FightC.Capture(c, data.CapsuleId)
return nil, -1
}