Skip to content

Commit

Permalink
stats on arena decks always display stats for arena games, regardless…
Browse files Browse the repository at this point in the history
… of Config.Instance.DisplayedMode (HearthSim#945)
  • Loading branch information
epix37 committed May 7, 2015
1 parent 9678312 commit 36bfbfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Hearthstone Deck Tracker/Hearthstone/Deck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,10 @@ public object Clone()
public List<GameStats> GetRelevantGames()
{
var filtered = Config.Instance.DisplayedMode == GameMode.All
? DeckStats.Games : DeckStats.Games.Where(g => g.GameMode == Config.Instance.DisplayedMode).ToList();
? DeckStats.Games
: (IsArenaDeck
? DeckStats.Games.Where(g => g.GameMode == GameMode.Arena).ToList()
: DeckStats.Games.Where(g => g.GameMode == Config.Instance.DisplayedMode).ToList());
switch(Config.Instance.DisplayedTimeFrame)
{
case DisplayedTimeFrame.AllTime:
Expand Down

0 comments on commit 36bfbfb

Please sign in to comment.