This commit is contained in:
@@ -43,7 +43,10 @@ func (f *FightC) Over(c common.PlayerI, res info.EnumBattleOverReason) {
|
||||
|
||||
f.overl.Do(func() {
|
||||
f.Reason = res
|
||||
f.WinnerId = f.GetInputByPlayer(c, true).UserID
|
||||
if f.GetInputByPlayer(c, true) != nil {
|
||||
f.WinnerId = f.GetInputByPlayer(c, true).UserID
|
||||
}
|
||||
|
||||
close(f.quit)
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user