diff --git a/modules/practice/api_receive.go b/modules/practice/api_receive.go index 284823ddb..e509d45bd 100644 --- a/modules/practice/api_receive.go +++ b/modules/practice/api_receive.go @@ -193,7 +193,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.PracticeReceiveR ants1[index].N++ } } - + room.Knapsack[pillar.Teacher].State = 0 } } if pconfigure != nil { @@ -235,6 +235,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.PracticeReceiveR ants2[index].N++ } } + room.Knapsack[pillar.Prop].State = 0 } } } @@ -245,8 +246,7 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.PracticeReceiveR if errdata = this.module.DispenseRes(session, append(ants1, ants2...), true); errdata != nil { return } - room.Knapsack[pillar.Teacher].State = 0 - room.Knapsack[pillar.Prop].State = 0 + pillar.Hero = "" pillar.Teacher = "" pillar.Prop = ""