Skip to content

Commit

Permalink
fix unintended string change for CardType.HERO_POWER caused by switch…
Browse files Browse the repository at this point in the history
… to HearthDb

fixes HearthSim#1796
  • Loading branch information
Alexander Zeier committed Dec 9, 2015
1 parent 4c8b5d6 commit 24c9b8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Hearthstone Deck Tracker/Hearthstone/HearthDbConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public static Rarity RariryConverter(HearthDb.Enums.Rarity rarity)

public static string CardTypeConverter(CardType type)
{
if(type == CardType.HERO_POWER)
return "Hero Power";
return CultureInfo.InvariantCulture.TextInfo.ToTitleCase(type.ToString().ToLower().Replace("_", ""));
}

Expand Down

0 comments on commit 24c9b8b

Please sign in to comment.