xy 1 주 전
부모
커밋
e506512daf
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 8 3
      src/server/game/ludo/battle.go

+ 8 - 3
src/server/game/ludo/battle.go

@@ -126,9 +126,14 @@ func (room_info *RoomInfoWrapper) notify_settlement() {
 	}
 	matchConfig := gameRule.getMatchByLevle(room_info.RoomLevel)
 	for _, v := range message.FinishColors {
-		user_id := v.MId
-		v.MRewardCoin = matchConfig.rewardNum
-		user.AddUserCoin(v.MRewardCoin, user_id)
+		if room_info.containsRobot(v.MColor) {
+
+		} else {
+			user_id := v.MId
+			v.MRewardCoin = matchConfig.rewardNum
+			user.AddUserCoin(v.MRewardCoin, user_id)
+		}
+
 	}
 	room_info.notify_to_all_player(message)
 	room_info.dismiss_room()