This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user