01 / SYNTAX
How it is written
UnitAffectingCombat02 / RESULTS
Forever compatibility
Available to UI / addon LuaWorks
SoloWorksAddon / UI Lua · Out of combat · Solo · Open worldUnitAffectingCombat("player") works in this tested context: addon Lua; out of combat; solo; open world.
RETURN BEHAVIOR
Observed return values
UnitAffectingCombat -> 1 return: boolean
EXAMPLES
Try this syntax
Verified invocation
UnitAffectingCombat