Addon Restriction Tester
Tired of needing a real boss pull just to test whether your pcall guard around SendChatMessage actually works? This addon lets you flip WoW's built-in restriction simulation CVars with checkboxes instead of typing /run C_CVar.SetCVar("addonEncounterRestrictionsForced", 1) every time.
/art opens the restriction panel. /art c opens the CVar browser if you need to poke at something else.
What it does
Six checkboxes, one for each restriction state Blizzard added in 12.0.5:
| CVar |
What flipping it on actually does |
addonChatRestrictionsForced |
InChatMessagingLockdown() returns true; SendAddonMessage gets silently dropped by the server (no Lua error, message just vanishes) |
addonCombatRestrictionsForced |
InCombatLockdown() returns true; secure frame ops fail, cooldown API values become secrets |
addonEncounterRestrictionsForced |
IsEncounterInProgress() returns true; SendChatMessage and other boss-guarded calls are blocked |
addonChallengeModeRestrictionsForced |
Simulates an active M+ timer; SendAddonMessage silently dropped on PARTY/RAID/WHISPER |
addonPvPMatchRestrictionsForced |
PvP match state active; C_PvP match-gated checks return true |
addonMapRestrictionsForced |
Map and instance identity APIs return secret/restricted values |
Active restrictions highlight orange so you can see at a glance what's on. Checkboxes stay in sync with the real CVar value. Flip one via the console while the panel is open and it updates immediately. Reset All zeroes everything at once.
Hover any row for a tooltip with more detail on which APIs are affected.
CVar browser
Also includes a searchable browser for ~75 common CVars (Camera, Sound, Chat, UI, Nameplates, Combat, Graphics, Network, Misc). Edit inline, reset to default with one click, look up any arbitrary CVar by name in the bar at the bottom. The CVar Browser button in the restriction panel opens it directly.
Window positions save between sessions.
Commands
/art restriction panel
/art c CVar browser
/art s print all six restriction CVar values to chat
Notes
These CVar names were secret*RestrictionsForced before 12.0.5. Blizzard renamed them. If they get renamed again the tooltips still describe what each one does.