Skip to content

Commit

Permalink
avoid increasing gold progress in spectator mode (HearthSim#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed Apr 16, 2015
1 parent 3cbffc8 commit fcc0e22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Hearthstone Deck Tracker/HsLogReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ private void Analyze(string log)
else
_gameHandler.HandlePossibleConstructedCard(id, false);
}
else if(_goldProgressRegex.IsMatch(logLine) && (DateTime.Now - _lastGameStart) > TimeSpan.FromSeconds(10))
else if(_goldProgressRegex.IsMatch(logLine) && (DateTime.Now - _lastGameStart) > TimeSpan.FromSeconds(10)
&& Game.CurrentGameMode != GameMode.Spectator)
{
int wins;
var rawWins = _goldProgressRegex.Match(logLine).Groups["wins"].Value;
Expand Down

0 comments on commit fcc0e22

Please sign in to comment.