xy il y a 1 semaine
Parent
commit
e506512daf
1 fichiers modifiés avec 8 ajouts et 3 suppressions
  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()