promotional bannermobile promotional banner

Super Swing Timer | SST SwingTimer |

A fast, customizable **Main Hand**, **Off Hand**, **Ranged**, and **Enemy** swing timer for World of Warcraft Classic and WoW Forever clients — with class-specific rotation helpers, target debuff bars, and a unified player power bar.
Back to Files

SuperSwingTimer v0.3.8

File nameSuperSwingTimer.zip
Uploader
AcidBombAcidBomb
Uploaded
Nov 27, 2026
Downloads
910
Size
1.4 MB
Flavors
ClassicClassic TBCTitan Reforged ClassicForever
File ID
9848059
Type
R
Release
Supported game versions
  • 3.80.2
  • 2.5.6
  • 2.5.5
  • 1.60.1
  • 1.15.9
  • 1.15.8

What's new

v0.3.8 - 2026-11-27

Added

  • Cooldown HUD type contracts (SuperSwingTimer_CooldownHUD.lua). SSTCooldownHUDButton (border, icon, swipe, glow overlay, text layer, count/charge text, glow/desat flags, bound key/spell) and SSTCooldownHUDSwipe now describe the real button, so the pooled button, the state accessor and the tests agree on one shape instead of Frame + ad-hoc fields.

Fixed

  • Login taint on WoW Forever removed (ADDON_ACTION_FORBIDDEN from RefreshCombatLogRegistration). Forever keeps the combat log restricted for the whole session, so the runtime toggle only ever ran its unsubscribe branch at PLAYER_ENTERING_WORLD — and mutating a CLEU subscription on that client is a forbidden action (RegisterEvent / UnregisterEvent gate on Enum.ForbiddenAspect.EventRegistrations), which pcall cannot suppress: the client fires the taint event before the call returns, so every login raised it once (BugSack aggregated them as 1x, then 3x, then 4x). The toggle and its three call sites are deleted; the subscription is decided once in RegisterEvents and never touched again, and UnregisterEvent no longer appears anywhere in the addon. Forever now gets its swing resolution from UNIT_COMBAT instead (new ns.HandleUnitCombat, which reads only the unit token and the outcome tag — the payload's amount field is a secret value and is never touched), so the melee landing callbacks, landing flash and queue-tint restore fire at the real landing instant rather than the predicted one. The event is registered only when ns.isForever is true, so Classic Era, TBC Anniversary and Titanforge keep their existing CLEU path and event set byte for byte.
  • SavedVariables nil-safety at the migration. MigrateDB now returns the table it normalized, and as a last resort seeds one from ns.DB_DEFAULTS when the client hands back no SavedVariable at all, so the migration ladder can never index a nil table. OnAddonLoaded captures that returned table once for its eleven dimension and three colour reads instead of re-resolving the global between statements.
  • Settings writes guard the table they write to, one site at a time. Every remaining SuperSwingTimerDB.<field> = … apply path now checks the SavedVariables table first — thirteen apply functions (ApplyBarBackgroundColor, ApplyBarBorderColor, ApplySparkSettings, ApplyIndicatorBlendMode, ApplySparkTextureLayer, ApplyWeaveMarkerLayer, ApplyWeaveSparkSettings, ApplyWeaveSparkTextureLayer, ApplyWeaveSparkAlpha, ApplyWeaveTriangleSettings, ApplyMinimalMode, InitBars, StopMoveMode) plus the hunter ranged-bar label, bar position save, bar size, border size, bar texture, ranged texture and texture-layer setters — so a settings write can no longer error out mid-pass and leave bars half-applied. There is deliberately no shared accessor: each path reads and writes only the specific table it owns, so nothing is created behind another subsystem's back.
  • Class-key lookups only index with a real class token. GetBuffToggle / GetBuffSize (Forever buff rows) and HasActiveTimers (State) gate on a genuine, non-secret class string first: WoW Forever's identity-restricted UnitClass can return a secret value, and indexing a table with a secret throws in combat.
  • Every test case that touches SavedVariables checks it first. The cases guard the table before the first read or write and record a failure instead of silently dereferencing nil, so a missing table fails the case loudly rather than poisoning the run. The secret-text label case also builds its stub as a FontString, which is what production actually sets.

Changed

  • Analyzer gate moved to wowlua_ls (v0.39) and lua5.1. luacheck is retired for this repo: it does not model the WoW API, secret values, or the four client flavors, and its output was churn. The gate is now luac5.1 -p SuperSwingTimer*.lua run_tests.lua, lua5.1 run_tests.lua and a per-file wowlua_ls check.
  • .wowluarc.json now points at this tree. Every library root was Libs/…, a directory that does not exist here, and two vendored directories were missing entirely, so third-party code was analyzed as ours. library now lists the real Lib/ roots (including Lib/LibClassicSwingTimerAPI/ and Lib/LibDetours-1.0/) and ignore lists real directories, removing ~27 vendored warnings from the report. Flavor coverage (retail, classic, classic_era, mainline, forever) and the secret-* error severities are unchanged.
  • run_tests.lua is analyzed instead of fully silenced. Its blanket ---@diagnostic disable is narrowed to ---@diagnostic disable: unused-vararg, the one rule the WoW stubs violate on purpose, so real diagnostics in the harness now surface.

Notes

  • Diagnostic baseline: 270 errors → 0, verified file by file; the only diagnostics left in addon files are hints.
  • DB schema stays at ns.DB_CURRENT_VERSION = 70 — no migration was added, so no player setting is rewritten by this release.
  • Version surfaces bumped together to v0.3.8: SuperSwingTimer.toc, the ns.GetDisplayVersion() fallback, the SuperSwingTimer_Config.lua panel fallbacks, the run_tests.lua metadata mock, and the suite's TOC assertion.