Skip to content

Commit

Permalink
should fix card-lock detection with faster exporting speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed May 10, 2015
1 parent 36bfbfb commit 4ed4f3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Hearthstone Deck Tracker/DeckExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,12 @@ private static async Task<int> AddCardToDeck(Card card, Point searchBoxPos, doub
if(card.Count == 2)
{
//Check if two card are not available
await Task.Delay(100);
await Task.Delay(200 - Config.Instance.DeckExportDelay);
if(CardHasLock(hsHandle, (int)(cardPosX + width * 0.048), (int)(cardPosY + height * 0.287)))
{
Logger.WriteLine("Only one copy found: " + card.Name, "DeckExporter", 1);
return 1;
}

await ClickOnPoint(hsHandle, new Point((int)cardPosX + 50, (int)cardPosY + 50));
}
Expand Down

0 comments on commit 4ed4f3c

Please sign in to comment.