1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-02-24 00:12:50 +08:00
committed by cnb
parent 25c9ecdad6
commit 467890a60b
2 changed files with 11 additions and 30 deletions

View File

@@ -76,6 +76,11 @@ func (h Controller) UsePetItemInboundInfo(data *fight.UsePetItemInboundInfo, c *
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.UseItem(c, data.CatchTime, data.ItemId)
return nil, -1
}