v0.13.8

ADDON_RESTRICTION_STATE_CHANGED

eventimplementedC_RestrictedActionsavailable in: camelot

Fired when the state of an addon restriction type is changing. This event is sequenced such that it will always be fired before a restriction becomes active, or after it is deactivated.

declarationwowlua
declare event ADDON_RESTRICTION_STATE_CHANGED(type: AddOnRestrictionType, state: AddOnRestrictionState)

Payload

#nametype
1typeAddOnRestrictionType
2stateAddOnRestrictionState

Blizzard's documentation marks the event as synchronous.

In wowlua's emulated client

implementedThe emulator fires it on its own, from its units model. what the statuses mean

sources

Name, payload and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (RestrictedActions system, camelot 1.60.1). Description: Blizzard's API documentation (Blizzard_APIDocumentationGenerated).