Alert Combat
UI Utility
Checks combat lockdown and shows ElvUI’s standard not-in-combat error when blocked.
NamespaceEModuleCoreLifecyclestable
E:AlertCombat()Checks combat lockdown and shows ElvUI’s standard not-in-combat error when blocked.
Parameters
Section titled “Parameters”None.
Returns
Section titled “Returns”Boolean combat lockdown state.
Example
Section titled “Example”if E:AlertCombat() then return endUse before addon actions that cannot safely run in combat.
Source: ElvUI/Game/Shared/General/API.lua:1097