Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns true if the unit is flagged for PVP.
ispvp = UnitIsPVP(unit)
- Arguments
- unit (UnitID)
- the unit name (e.g., "target")
- Returns
- ispvp
- 1 if the unit is flagged for PvP, nil otherwise.
- Example
if (UnitIsPVP("target")) then -- Target is flagged for PvP end