API:GetPlayerCombatState

__NOTOC__
GetPlayerCombatState
Get the level of a unit.
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;