File Details
1.4.0-classic/tbc
- R
- Jun 28, 2026
- 2.47 KB
- 51
- 2.5.6+1
- Classic + 1
File Name
1.1.4.zip
Supported Versions
- 2.5.6
- 1.15.8
Header
- Reformatted copyright block to match standard style
- Added version, copyright range, warranty disclaimer, and bug report URL
Bug fix
SetTextColor(128, 0, 128, 1)→(0.5, 0, 0.5, 1)— WoW color values are 0–1, so128was clamping to solid magenta.
Optimizations
- Extracted
ApplyOutline(fs)helper — removed 6 lines of repeatedGetFont/SetFontboilerplate. - Removed unused return values (
isTanking,status,rawThreatPct) fromUnitDetailedThreatSituationwith_skipping. PlayRandomSound: merged twoifconditions into one, simplifiedmath.random(1, #t)→math.random(#t)(equivalent).ToggleLock,ToggleSoundAlert,ToggleTitleText: flip state first, then branch — eliminates the inverted logic.UpdateTitle: early return on hidden state instead of a nested if/else.UpdateThreatInfo: two early returns at top clean up the nested structure; elseif chain now reads top-down from highest threshold (no redundant> X andguards).InitializeLockStateinlined asframe:EnableMouse(not KenzisThreatMeterDB.isLocked)— the function only had two branches that toggled a bool.- Slash handler:
msg:lower()cached intocmdto avoid repeated calls.