API:GetPlayerCombatState

__NOTOC__
GetPlayerCombatState
Get whether you are in combat or not.
state = GetPlayerCombatState()
== Returns ==
:;state
::boolean - true in Combat.
== Example ==
Print whether you are in combat to the Say channel.
local state = GetPlayerCombatState()
if (state) then
 SendChatMessage("I'm in combat.","SAY")
end