This post is made under the assumption that a deck still consists of 4 copies of 10 cards making a 40 card draw deck.
I don’t mention gem matches and damage (unless it impacts a draw).
I don’t mention my opponents draw as I don’t see what he gets and it doesn’t impact the order of my draw.
Pregame
Draw - Lightning Runner, Drownyard Temple
Turn 1
Draw - Tamiyo’s Journal
Cast - Lightning Runner
Turn 2 (opponent)
Cast - Fevered Visions
Turn 3
Draw - Lightning Runner
Cast - Drownyard Temple, Tamiyo’s Journal, Lightning Runner
End of Turn 3
Triggered - opponent’s Fevered Visions causes me to Draw
Draw - Drownyard Temple
Turn 4 (opponent)
Cast - Hixus, Prison Warden
Turn 5
Triggered - Drownyard Temple, Tamiyo’s Journal
Draw - Drownyard Temple
Create - 4 1/1 Colorless Thopters (Saheeli’s 1st ability “Compete”)
Triggered - Clue
Draw - Drownyard Temple
End of Turn 5
Triggered - opponent’s Fevered Visions causes me to Draw
Draw - Thopter Spy Network
Turn 6 (opponent)
Cast - Fevered Visions, Gonti’s Aether Heart
Triggered - Gonti’s Aether Heart
Turn 7
Triggered - Drownyard Temple, Tamiyo’s Journal
Draw - Imprisoned in the Moon
Cast - Drownyard Temple
End of Turn 7
Triggered - opponents Fevered Visions causes me to Draw
Draw - Inner Struggle
Turn 8 (opponent - just draw)
Turn 9
Triggered - Drownyard Temple, Tamiyo’s Journal
Draw - Inner Struggle
Triggered - Clue
<My Hand is still full at the end of Turn 9>
Turn 10 (opponent - hand full)
Turn 11
<My Hand is still full at the beginning of Turn 11>
Triggered - Drownyard Temple, Tamiyo’s Journal
Triggered - Clue
(Opponent’s Support Destroyed -Hixus)
Cast - Thopter Spy Network
My thopters from Turn 5 finally do damage triggering draw from Spy Thopter Network
Draw - Drownyard Temple
The bug is now present - the rest of the Battle Log doesn’t matter at this point, but if you are curious, I won the battle
The problem as of this point in Turn 11:
I’ve only seen 6 different cards of 10 in the deck
I’ve only drawn 12 of 40 cards.
I’ve drawn “Drownyard Temple” 5 times.
I don’t see any other thing here impacting the draw.
Clues are just draw, not randomly draw.
Fevered vision is just draw, not randomly draw.
Token damage related to Spy Thopter Network is just draw, not randomly draw.
Thanks for the Battle Log feature it was very helpful but I think your code for building and drawing from a 40 card deck may be busted.