API C PvP.IsWarModeDesired

Indicates whether the player has opted into War Mode beginning with Battle for Azeroth, regardless if the player is in an outdoor zone where such PvP is actually possible.
 warModeDesired = C_PvP.IsWarModeDesired()
==Returns==
:;warModeDesired: - True if the player has turned war mode on; false otherwise.
==Example==
The following example is adpated from FrameXML/PartyMemberFrame.lua
for i=1, 4 
	local unit = "party"..i
	if UnitExists(unit) then 
		if UnitInPhase(unit) then 
			print(string.format("Party member %d: Currently in phase!", i))
		else
			if UnitIsWarModePhased(unit) then
				if C_PvP.IsWarModeDesired() then 
					print(string.format("Party member &d: %s",i, PARTY_PLAYER_WARMODE_DISABLED))
				else
					print(string.format("Party member &d: %s",i, PARTY_PLAYER_WARMODE_ENABLED))
				end
			else
				print(string.format("Party member &d: %s",i, PARTY_PHASED_MESSAGE))
			end
		end
	end
end
==Patch changes==
==See also==
*