Quick answer: Reset the combo counter to zero when the target's hitstun timer expires or when no hit has landed within the combo window.
If the combo number on a target keeps growing across separate fights, it never resets. Clearing it when hitstun ends fixes the counter. Here is how.
How to fix it
1. Reset on hitstun end
When the target's hitstun timer reaches zero, set its combo_count instance variable back to 0 so the next hit starts a fresh combo.
2. Use a combo window timer
Start or refresh a short window on each hit; if it elapses without another hit, reset the count, so dropped combos end naturally.
3. Track per target
Store the combo count as an instance variable on each enemy rather than a global, so simultaneous combos on different enemies do not share one counter.
Catching the ones you can't reproduce
The hardest version of this to fix is the one you can't reproduce — it only happens on a player's hardware, OS, driver, or save state, under conditions that simply aren't present on your machine. A report that says “it crashed” or “it froze” gives you nothing to act on, so the bug survives release after release while quietly costing you players.
Automatic error capture closes that gap. Each failure arrives with its full stack trace, the device and OS, the build number, and a breadcrumb trail of what the player did right before it broke, so even a failure you have never seen becomes a specific, reproducible issue. Fold identical failures into one signature ranked by how many players each hits, and your worklist sorts itself worst-first instead of arriving as a stream of vague complaints.
This is where a tool like Bugnet earns its place. Its SDK captures every Construct 3 error automatically with the full stack trace plus device, OS, memory, build, and game-state context, folds duplicates into one grouped issue with an occurrence count, and ties each to the build it first appeared on — so you fix the problem that hurts the most players first and confirm it is gone when its signature disappears from the next release.
Most of the time the fix is small. Seeing the failure clearly is the part that actually costs you.