bru7us / HS-DeckTrack

A Terminal-based Deck Tracker for Hearthstone
MIT License
19 stars 2 forks source link

Milled cards not handled #1

Closed philroberts closed 10 years ago

philroberts commented 10 years ago

When you overdraw, the burnt card is not removed from your deck list. Poorly tested patch below. You could add something similar for opponent cards burnt.

--- a/HS-DeckTrack
+++ b/HS-DeckTrack
@@ -68,6 +68,9 @@ while (1) {
     if (/^\[Zone.*\[name=(.*) id=.*zone=(HAND|PLAY).* FRIENDLY DECK /) {
       $hero_drawn_hash{$1} += 1;
     }
+    if (/^\[Zone.*\[name=(.*) id=.*zone=GRAVEYARD.* FRIENDLY DECK /) {
+      $hero_drawn_hash{$1} += 1;
+    }
     if (/^\[Zone.*\[name=(.*) id=.*zone=DECK.* FRIENDLY DECK$/) {
       $hero_mull_hash{$1} += 1;
     }
bru7us commented 10 years ago

Hah! That's the very first thing I tested in Epix37's windows version... and then the first thing I forgot to cover in my own!

Thanks - I'll get it added today.