Executive Summary and Bug Overview

A timing collision between the final damage tick of Enigma's Black Hole and incoming or outgoing damage events from Snapfire's Firesnap Cookie leaves an orphaned area-of-effect state anchored at a single map coordinate. Confirmed through local Demo Hero reproduction, the bug starts as a persistent Black Hole hazard in one spot and mutates on a second cast into stacked particle and audio loops that degrade client rendering and sound channels.

In Dota 2's ability and modifier lifecycle, channeled or duration-bound area spells rely on paired expiration callbacks and teardown routines to stop periodic ticks, release particle handles, and halt looping sound emitters. When Snapfire's cookie damage lands right on or immediately adjacent to Black Hole's final tick, a state transition or interruption branch exits the normal cleanup path early: the damage/pull logic or spatial anchor remains bound to the original cast coordinates while its lifetime timer drops out, producing an unexpiring field. Casting Black Hole again allocates fresh visual particle systems and looping audio emitters without reclaiming or isolating the orphaned state, causing overlapping effects and sound buildup at the affected site and across subsequent casts.

  • Competitive and match integrity risk: Because the trigger is reproducible in Demo Hero without exotic map states, coordinated players can force persistent hazard zones or audio-visual clutter in live public and ranked matches before a hotfix ships, distorting teamfight readability and area control.
  • Client performance degradation: Leaving unfreed particle emitters and looping sound instances active across repeated casts accumulates active client entities and audio voices over long matches, increasing frame-time spikes and audio channel contention.
  • Why mitigation requires targeting state teardown: Simply avoiding Snapfire matchups or waiting out the visual effect fails to clear orphaned anchors once triggered; effective containment requires either banning or avoiding the pairing in live play or patching the spell teardown and re-cast reset logic in script/engine code.
Stage Trigger Mechanism Observable Effect
Initial exploit Snapfire cookie damage overlaps Black Hole's final tick, bypassing full modifier and effect cleanup Persistent Black Hole stays locked at the cast spot after normal duration ends
Subsequent casts New Black Hole cast runs while prior lingering state, particles, or sound loops remain active Effect shifts into stacked visual and audio clutter rather than clean single-instance behavior
Match impact Unbounded accumulation of lingering emitters and exploit setups across rounds Compromised fight clarity, client slowdown, and lobby instability until patched

Decision rule for immediate response: If you are playing a live ranked or public match and spot the cookie-to-final-tick overlap, treat the spot as a corrupted state zone and avoid chaining repeat casts over it; if you are testing or scripting a fix, prioritize auditing the final-tick teardown and re-cast cleanup path first rather than tuning damage numbers alone.

Ability Mechanics and Interaction Baseline

When a reproducible exploit breaks Dota 2 in Demo Hero mode without exotic map states, live matchmaking is already exposed. If players can trigger a non-expiring area-of-effect zone and stack looping audio-visual clutter on demand, ranked integrity and client frame times degrade immediately before any hotfix ships. To spot where execution derails, we first have to trace how Black Hole and Firesnap Cookie normally mutate game state and clean up after themselves.

Under clean execution, Enigma's Black Hole operates as a stationary, duration-bound area-of-effect anchor tied to cast coordinates. Each periodic interval fires a pull-and-damage pulse through the modifier or script tick loop, applies pull vectors and damage to units inside the radius, and keeps an active handle to its particle system and looping sound emitter. When the lifetime timer expires, the normal teardown path runs in strict order: it halts further periodic ticks, detaches or destroys the area logic, releases particle handles, and stops the looping audio emitter so memory and audio channels return to baseline.

Snapfire's Firesnap Cookie introduces a distinct burst of movement and impact damage rather than a stationary channel. When cookie damage lands on or near a target affected by Black Hole right at the final tick, the damage event and the expiration callback contend within the same tick window. If that overlap forces an early exit or state transition before the teardown sequence finishes, the lifetime timer still counts down and ends, but the spatial anchor and active area logic stay bound to the cast point—leaving an orphaned hazard zone that keeps running past its normal duration.

  • Normal Black Hole lifecycle: Periodic ticks apply pull and damage up to the final interval, after which expiration triggers tick termination, particle handle release, and loop-sound teardown together.
  • Cookie damage collision at final tick: Incoming or outgoing cookie damage overlaps the final tick or expiration branch, interrupting normal cleanup so the spatial anchor remains active after the timer finishes.
  • Subsequent cast mutation: Casting Black Hole again while the first instance's state is orphaned allocates fresh particle emitters and looping audio channels without reclaiming or isolating the lingering handles, turning clean single-cast effects into stacked audio-visual clutter.
  • Client and match risk mechanism: Unreleased particle emitters and looping sound instances accumulate across repeated casts, increasing draw/particle work and audio channel contention that spike frame times and obscure teamfight readability.

Fixing the Bug vs. Live Match Containment

Choosing the wrong fix wastes engineering cycles or leaves the exploit intact. Tuning cookie or Black Hole damage numbers does nothing because the failure sits in teardown order and handle ownership, not damage magnitude. Likewise, waiting out the spell's nominal duration or avoiding Snapfire after a trigger fails because an orphaned spatial anchor no longer obeys its original timer, and unfreed emitters stay resident until re-initialized or cleaned up.

The optimal engineering fix is auditing and hardening final-tick teardown alongside re-cast state reclamation in the ability script and modifier lifecycle—guaranteeing that tick loops stop, particle and sound handles are freed on every exit path, and re-casts cannot collide with or stack onto prior uncleaned state. That fix stops working only if another separate modifier or engine-level entity callback re-registers or leaks the same particle/sound handles outside that teardown path.

  • Typical choice error—tweaking damage values: Changing numeric damage leaves the interrupted cleanup branch untouched, so final-tick overlap still orphans the spatial anchor and leaks audio-visual emitters.
  • Typical choice error—relying on duration expiry or hero avoidance: Once the timer lapses on a corrupted cast, time alone will not clear an orphaned anchor, and unfreed client effects persist across subsequent casts.
  • Decision rule for live matches: If Firesnap Cookie damage overlaps Black Hole's final tick and leaves a lingering zone, treat that spot as a corrupted state zone and do not chain repeat casts over it.
  • Decision rule for engineering and testing: If reproducing or patching the exploit, audit final-tick teardown and re-cast state reclamation first rather than adjusting damage values.

Fixing the Infinite Black Hole Bug Caused by Snapfire's Cookie Damage Interaction

When I reproduced this in Demo Hero, the culprit was not a freak map state or a custom lobby modifier. It came down to a collision between the final damage tick of Enigma's Black Hole and the impact damage from Snapfire's Firesnap Cookie. Normally, a Black Hole runs on a fixed timer and tears itself down cleanly: periodic pull-and-damage ticks stop, the spatial anchor detaches, particle handles free up, and the looping sound emitter shuts off. When cookie damage lands right on or immediately after that final tick, the damage callback and the expiration teardown contend inside the same tick window. That contention trips an early exit or state-transition branch that skips full cleanup, leaving the spatial anchor and area logic stranded at the original cast point while the lifetime timer expires.

Left unpatched, this is not just a funny Demo Hero quirk. Because you can trigger it locally without exotic setup, players can replicate it in live public and ranked matches before a hotfix ships. Once an orphaned Black Hole anchor stays active, subsequent casts pile fresh particle systems and looping audio channels onto uncleaned state, turning clean area control into persistent visual noise, audio channel contention, and frame-time spikes during long teamfights.

Five Reproduction Scenarios and Escalation Stages

1. Initial Persistence: Final-Tick Cookie Collision

In Scenario 1, Black Hole is near expiration while Firesnap Cookie launches a target through or near the pull zone, delivering movement burst and impact damage right around the final tick. That incoming damage event fires concurrently with or right after the modifier's expiration callback, forcing an alternate state branch before the standard teardown sequence finishes. Because the cleanup routine exits early, the duration timer stops ticking down its normal lifetime while the spatial anchor and active area-of-effect logic remain bound to the cast coordinates. Visually and mechanically, the hazard zone refuses to expire at the expected end of the channel, turning a temporary spell anchor into a lingering spot effect.

2. Repeated Casts: Re-Cast Mutation and Handle Stacking

In Scenario 2, Enigma casts Black Hole again while the first instance's spatial anchor or modifier state is already orphaned. Instead of reclaiming or isolating the lingering handles from the first cast, the new cast allocates fresh particle emitters and looping sound emitters alongside the unfreed ones. Each re-cast mutates the local state further because old effect references are not purged before new ones attach. Rather than resetting cleanly to a single active Black Hole, the engine ends up juggling overlapping effect instances whose lifecycles are out of sync.

3. Audio and Visual Degradation: Emitter and Channel Accumulation

In Scenario 3, repeated casts in the same match—or repeated triggers across skirmishes—push accumulated particle emitters and looping audio instances past comfortable client budgets. Every unfreed particle system adds draw calls and overdraw work on the GPU when overlapping screen space, while every unstopped looping sound emitter occupies an active audio channel and mixes continuously. As those counts climb over an extended match, frame times spike during crowded fights and distinct sound cues get buried under stacked loops, eroding both performance and fight readability.

4. Boundary Conditions: Timing Windows, Spatial Edges, and Waiting Out Duration

In Scenario 4, reproduction depends on tight temporal and spatial boundaries rather than raw spell damage. If Firesnap Cookie damage resolves well before the final tick, normal teardown still runs on schedule; if it lands too late after the modifier has already completed cleanup, no orphaned anchor forms. Edge-case placement right on the perimeter of the Black Hole radius—where a cookie-launched unit crosses the boundary right as the final tick resolves—is especially sensitive because damage and expiration checks evaluate near the same tick boundary. Waiting out the nominal Black Hole duration or avoiding Snapfire after the bug triggers does nothing to clear an already orphaned anchor because the broken zone is no longer governed by the original expiration timer.

5. Cleanup and Failure States: Teardown Bypass vs. Residual Leaks

In Scenario 5, two distinct failure states show up depending on how far teardown gets and what happens afterward. In a clean teardown path, periodic ticks halt, area logic detaches, particle handles release, and looping audio stops, returning memory and audio channels to baseline. In the broken path, an early exit during final-tick damage contention leaves the anchor orphaned, and later casts fail to reclaim prior handles, producing a stuck zone that degrades into stacked audio-visual clutter. Even after auditing final-tick teardown and re-cast state reclamation, a residual failure state can still occur if an external modifier or lower-level engine callback re-registers or leaks the same particle or sound handle outside that cleanup path.

Fixing the Bug vs. Live Match Containment

A common mistake during triage is tweaking Black Hole or Firesnap Cookie damage numbers to test or mitigate the bug. Changing damage values alters numerical output, not execution order or handle ownership, so the early-exit branch during final-tick overlap stays intact. Another common mistake in live games is waiting out the spell's normal duration or simply stopping Snapfire interactions after a trigger; neither purges an already orphaned anchor or reclaims unfreed client emitters from prior casts.

Comparing the options by effectiveness makes the priority clear:

  • Damage-value tuning: Ineffective as a fix because the fault lives in teardown order and handle cleanup, not damage math.
  • Waiting out duration or avoiding Snapfire post-trigger: Ineffective for clearing active state because orphaned anchors ignore normal expiration timers and stacked audio-visual loops persist across subsequent casts.
  • Auditing final-tick teardown and re-cast state reclamation: Optimal engineering fix because it forces periodic ticks to stop, frees particle and sound handles across all exit paths, and prevents re-casts from stacking onto uncleaned state.

This fix is optimal because it addresses the exact causal chain—interrupted final-tick cleanup followed by unguarded re-cast allocation—at its root. It stops working only if a separate modifier or engine-level entity callback re-registers or leaks the same particle or sound handles outside that teardown path.

Use these decision rules in practice: if Firesnap Cookie damage overlaps Black Hole's final tick in a live match and leaves a persistent zone, treat that spot as a corrupted state zone and do not chain repeat casts over it; if you are engineering or QA testing the fix, audit final-tick teardown and re-cast state reclamation first before touching damage numbers.

Game-State and Script Hypotheses

When Firesnap Cookie impact damage lands inside or right along the edge of Enigma's Black Hole during its final damage tick, normal ability teardown breaks down and leaves behind an orphaned hazard zone. Subsequent Black Hole casts then collide with unfreed client resources, mutating clean single-cast behavior into stacked audio-visual clutter. Because the setup reproduces cleanly in Demo Hero mode, players can trigger it before a hotfix ships—making it a live-match integrity and client-performance hazard rather than a harmless oddity.

  • Lifecycle teardown ordering and early-exit branches: During a clean expiration, Black Hole halts its periodic pull-and-damage loop, detaches the spatial anchor at the cast coordinates, releases its particle system handle, and stops its looping sound emitter. If cookie impact damage fires inside the same tick window as the expiration callback, a shared modifier state transition or damage-event guard can take an early-return path before teardown finishes. The lifetime timer stops advancing cleanup, while the spatial anchor and area-of-effect logic stay bound to the map coordinates.
  • Timer and reference leaks on orphaned anchors: Once the expiration callback exits early, the periodic tick or spatial anchor loses its link to the original duration timer. Because the zone no longer depends on the scheduled expiration callback, waiting out the nominal spell duration or stopping Snapfire interactions does not clear the anchor—the persistent effect stays locked in place while its cleanup trigger never fires again.
  • Damage-event hook contention across hero abilities: Black Hole's final tick and Snapfire's Firesnap Cookie impact damage both execute within the game's simulation tick processing. When a cookie-launched unit crosses or lands near the Black Hole radius right as the final tick resolves, overlapping damage callbacks can contend over modifier ownership, state flags, or destruction hooks. That contention aborts the standard destruction sequence instead of letting cleanup run to completion.
  • Audio and particle entity limits under re-cast mutation: Casting Black Hole again while a prior instance's handles remain unfreed causes the new cast to allocate fresh particle systems and looping sound emitters without reclaiming or isolating the old ones. Unfreed particle emitters increase GPU draw calls and screen-space overdraw across overlapping casts, while unstopped looping audio emitters hold active audio channels and mix continuously—producing frame-time spikes in crowded fights, masking audio cues, and turning follow-up casts into stacked visual and audio noise.
Hypothesis Failure Mechanism Observable Symptom
Teardown ordering & early exit Final-tick and cookie damage callbacks contend in the same tick, triggering an early exit before emitter/anchor cleanup runs Persistent Black Hole locked at original cast point past normal duration
Timer & reference leak Anchor and logic detach from the expiration timer after an interrupted exit, removing the scheduled teardown trigger Effect remains active after nominal duration ends; waiting it out does not clear it
Damage-hook contention Simultaneous cookie impact and final-tick damage events collide on modifier or state transitions near the radius edge Reproducible only when cookie damage overlaps final-tick timing and spatial bounds
Audio/particle entity accumulation Re-casts allocate new particle systems and audio loops without freeing prior handles, driving draw and channel contention Subsequent casts stack visual and audio loops; frame times spike and fight audio degrades

Fix comparison and decision rule: Tuning Black Hole or Firesnap Cookie damage numbers is ineffective because it leaves the early-exit teardown branch and unguarded re-cast allocation intact. Waiting out duration or avoiding Snapfire after a trigger is also ineffective because orphaned anchors no longer follow the original timer and already-allocated emitters and audio channels stay active. Auditing and hardening final-tick teardown plus re-cast state and handle reclamation is the optimal engineering fix because it forces tick loops to terminate, frees particle and sound handles across every exit path, and prevents re-casts from stacking onto uncleaned state. That fix stops working only if an external modifier or lower-level engine callback re-registers or leaks the same particle or sound handles outside the audited cleanup path. For live matches: if Firesnap Cookie damage overlaps Black Hole's final tick and leaves a persistent zone, treat the spot as a corrupted state zone and do not chain repeat casts over it. For engineering and QA: if fixing the exploit, audit final-tick teardown and re-cast handle reclamation before changing spell damage values.

Diagnostic Evidence and Verification Plan

Confirming the race condition between Enigma's Black Hole final tick and Snapfire's Firesnap Cookie impact damage requires separating normal expiration from a callback collision that aborts teardown. Because a premature exit detaches the spatial anchor from its expiration timer, waiting out the spell does not clear the state; you must inspect event ordering at the final tick window and verify handle reclamation on subsequent casts.

Combat-Log Markers and Timing Signatures

When cookie impact damage lands inside or right on the boundary of Black Hole during the final simulation tick, damage callbacks and expiration teardown callbacks contend over shared modifier state or destruction hooks. That contention triggers an early-exit branch before cleanup runs, leaving active area-of-effect logic bound to the cast point.

  • Final-tick and cookie overlap: Look for a Firesnap Cookie impact damage event firing in the same simulation tick as, or immediately adjacent to, Black Hole's final scheduled pull-and-damage tick, especially when a launched unit crosses the perimeter edge.
  • Missing clean teardown sequence: On a healthy cast, the periodic tick loop stops, the spatial anchor detaches, particle handles free, and looping audio stops at expiration. In the failure case, periodic damage or pull behavior continues past the nominal duration without a matching expiration cleanup event.
  • Re-cast desynchronization: When Enigma casts Black Hole again over or near the unfreed zone, subsequent casts allocate fresh particle emitters and looping audio channels without reclaiming prior ones, producing stacked audio loops and overlapping visual effects.

Entity, Script, and Client State Checks

Once an orphaned zone appears, the spatial anchor and periodic logic no longer depend on the original duration timer, while unfreed client resources accumulate across casts and degrade client performance.

Inspection Target Expected Healthy State Bugged / Exploit State Underlying Failure Mechanism
Modifier & Teardown Hook Final tick halts the loop and executes full destruction and anchor detachment. Early-return branch exits before cleanup completes after hook contention. Contention over modifier ownership or state flags aborts the destruction sequence.
Spatial Anchor & Timer Anchor detaches when the expiration timer completes its scheduled run. Anchor remains locked at original cast coordinates after duration ends. Interrupted exit decouples the AoE anchor from the timer with no replacement cleanup callback.
Particle & Sound Handles Emitter handles release and looping sound stops on teardown and re-cast. Prior emitters and audio loops stay active while new ones spawn on re-cast. Missing teardown and unguarded re-cast allocation raise draw calls, overdraw, and active audio channels.

Controlled Reproduction and Validation Steps

Use Demo Hero mode with controlled timing to isolate the final-tick window before testing fixes or validating a patch:

  • Baseline normal cast: Cast Black Hole alone and let it expire naturally. Confirm periodic ticks stop on schedule, no residual zone remains at the cast point, and a second cast does not stack extra audio or visual loops.
  • Boundary reproduction: Cast Black Hole and time Firesnap Cookie so a unit lands inside or along the outer radius right as the final damage tick resolves. Check if the Black Hole effect persists at the cast coordinates past nominal duration.
  • Re-cast stress check: With an active orphaned Black Hole in place, cast Black Hole again (once and repeatedly) and monitor frame times, screen-space particle overlap, and continuous audio mixing.
  • Post-fix regression check: Repeat the final-tick cookie collision and subsequent re-casts after applying the teardown and re-cast reclamation fix. Confirm the zone terminates cleanly, handles are freed across all exit paths, and no orphaned state remains.

Remediation Comparison and Decision Rule

Choosing the wrong fix leaves the exploit live or wastes engineering cycles. Adjusting damage numbers on Black Hole or Firesnap Cookie is ineffective because changing damage values does not alter callback execution order or prevent the early-exit branch. Waiting out the spell duration or avoiding Snapfire interactions after the trigger is likewise ineffective because an orphaned anchor lacks an active expiration timer and already-allocated emitters or audio channels are not reclaimed.

Optimal choice: Audit and harden final-tick teardown alongside re-cast state and handle reclamation so tick loops terminate, particle and sound handles release on every exit path, and re-casts reclaim or isolate prior state. This is optimal because it directly eliminates the early-exit state leak and prevents handle stacking on subsequent casts. Decision rule: If the symptom is a persistent Black Hole or stacked audio-visual loops from final-tick cookie overlap -> enforce teardown and re-cast handle reclamation rather than tuning damage numbers or waiting out duration. That fix stops working only if an external modifier or lower-level engine callback re-registers or leaks the same particle or sound handles outside the audited cleanup path.