Simple Taunt Announce - reborn

Simple Taunt Announce reborn

File Details

SimpleTauntAnnounce-1.1.2

  • R
  • Apr 11, 2026
  • 31.82 KB
  • 51
  • 12.0.5+1
  • Retail

File Name

SimpleTauntAnnounce.zip

Supported Versions

  • 12.0.5
  • 12.0.1

## 1.1.2 — Midnight secret boolean hotfix (2025)

Emergency patch for a regression introduced by Blizzard's latest Midnight
anti-bot update. No breaking changes; fully backwards compatible.

### Bug fixes

- **`UnitDetailedThreatSituation()` returns a secret boolean.** Midnight now
  returns a proxy value from this function that cannot be used in a boolean
  test (`if`/`not`). Attempting to do so throws:
  `"attempt to perform boolean test on a secret boolean value (tainted by '...')"`
  This caused 144+ error spam per session and broke all "other tank taunted"
  notifications. Fixed by wrapping all calls in a `pcall`-based helper
  `IsPrimaryTank(unit, target)` that normalises the result to a plain Lua
  boolean.

- **`UnitInRaid()` and `UnitInParty()` wrapped defensively.** Both functions
  can return secret values under the same Midnight taint system. Replaced all
  direct calls with `IsUnitInGroup(unit, inRaid, inGroup)`, a `pcall`-based
  helper that safely resolves membership to `true`/`false`.

### Technical notes

Midnight's secret value system has now escalated beyond table-index crashes:
values returned by combat-related APIs can now also crash on boolean
evaluation. The established `pcall` pattern is the correct defense for all
API return values from combat/threat/unit functions.

---