WoW API: GetPVPDesired

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetPVPDesired to API GetPVPDesired without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetPVPDesired

Checks to see if the player has enabled PvP ("Permaflagged").

local ispvp = GetPVPDesired(); 

Returns
ispvp
1 if the player has selected to be PvP flagged, 0 otherwise.

Example
if (GetPVPDesired() == 0) then
 --Player is not force-flagged for PvP
end