Skip to content

Commit

Permalink
Fizzle Snapshot Card Order
Browse files Browse the repository at this point in the history
- From: Hand default order (chronological?)
- To: Hand zone position order
- See #35
  • Loading branch information
batstyx committed Apr 16, 2024
2 parents b47d978 + 1f34b28 commit 1a3af36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Graveyard/FizzleView.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Hearthstone_Deck_Tracker.API;
using HearthDb.Enums;
using Hearthstone_Deck_Tracker.API;
using Hearthstone_Deck_Tracker.Hearthstone;
using System.Linq;
using System.Windows;
Expand Down Expand Up @@ -28,7 +29,7 @@ public override bool Update(Card card)

if (card.Id == FizzleId)
{
Cards.AddRange(Core.Game.Player.Hand.Select(e => Database.GetCardFromId(e.CardId)));
Cards.AddRange(Core.Game.Player.Hand.OrderBy(e => e.ZonePosition).Select(e => Database.GetCardFromId(e.CardId)));
}
else if (card.Id == SnapshotId)
{
Expand Down
4 changes: 2 additions & 2 deletions Graveyard/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.14.1.0")]
[assembly: AssemblyFileVersion("1.14.1.0")]
[assembly: AssemblyVersion("1.14.2.0")]
[assembly: AssemblyFileVersion("1.14.2.0")]

0 comments on commit 1a3af36

Please sign in to comment.