m
Formatting (based on UnitClassification)
m (→Examples) |
m (Formatting (based on UnitClassification)) |
||
| Line 1: | Line 1: | ||
<center>'''UnitIsPVP''' - ''Documentation by MadJester''</center> | <center>'''UnitIsPVP''' - ''Documentation by MadJester''</center> | ||
Checks to see if a unit is flagged for PvP or not. | |||
UnitIsPVP( | local ispvp = UnitIsPVP(unit); | ||
---- | |||
;''Arguments'' | |||
target | :;unit ([[API_TYPE_UnitId|UnitID]]) : the unit name (e.g., "target") | ||
---- | |||
;''Returns'' | |||
:;ispvp : 1 if the unit is flagged for PvP, nil otherwise. | |||
---- | |||
;''Example'' | |||
if (UnitIsPVP("target")) then | |||
if(UnitIsPVP("target"))then | -- Target is flagged for PvP | ||
end | |||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||