xy 1 semana atrás
pai
commit
e506512daf
1 arquivos alterados com 8 adições e 3 exclusões
  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()