The core problem: attacks don't deal damage (protocol issue), so mobs never die. entityGone fires spuriously, combat "ends", then the 2-second scan finds the same mob and re-engages endlessly. Fix: after combat ends for ANY reason, the entity ID is blacklisted for 30 seconds. The scan loop skips blacklisted entities. This prevents the infinite re-engage loop. The underlying damage issue still needs investigation, but at least Doug won't get stuck in an endless combat loop anymore. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| patches | ||
| src | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||