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

This commit is contained in:
昔念
2026-02-03 20:20:13 +08:00
parent 646a5ba835
commit e6ef348fcc
3 changed files with 13 additions and 10 deletions

View File

@@ -245,13 +245,12 @@ func (f *FightC) handleTimeout(ourID, oppID uint32, actions map[uint32]action.Ba
if _, exists := actions[pid]; exists {
continue
}
//cool.Logger.Debug(context.Background(), "玩家超时", pid)
f.Reason = info.BattleOverReason.PlayerOVerTime
f.closefight = true
//对方赢
if f.Info.Status == info.BattleMode.FIGHT_WITH_NPC {
f.WinnerId = f.GetInputByPlayer(f.getPlayerByID(pid), true).Player.GetInfo().UserID
f.WinnerId = 0
}