# [v5.22.46](https://github.com/Anoniomouse/Weakauras2/tree/v5.22.46) (2026-04-27)

[Full Changelog](https://github.com/Anoniomouse/Weakauras2/compare/v5.22.45...v5.22.46)

## Highlights

Guard UnitGUID secret-key crashes in restricted combat (WoW 12.x)

In WoW 12.x restricted state, UnitGUID returns a secret-tagged value
that cannot be used as a table key for writes.  Five sites fixed:

- WeakAuras.lua boss_guids write + CheckForPreviousEncounter read
- BuffTrigger2.lua SetUID guidToUnit writes (undo unitToGuid on failure)
- BuffTrigger2.lua GetUnit UnitGUID comparison (pcall, treat as mismatch)
- BuffTrigger2.lua MatchesTriggerInfoMulti player/pet GUID comparisons
- GenericTrigger.lua WatchUnit GUIDToUnitIds writes (clear unitIdToGUID on failure)
- WeakAuras.lua UnitPlayerControlledFixed guid:sub() comparison

All pcall guards wrap the actual write/comparison rather than probing
a read, so behaviour outside restricted state is identical to before.

## Commits

Anoniomouse (1):

- Guard UnitGUID secret-key crashes in restricted combat (WoW 12.x)

dependabot[bot] (2):

- Bump actions/upload-artifact from 4 to 7
- Bump actions/checkout from 4 to 6

