AddOns WoW API Widget API XML UI Event API WoW Lua Macro API CVars
Battle.net
HOWTOs Snippets UI tech
Categories
← WoW API < UnitIsPVP
Checks to see if a unit is flagged for PvP or not.
local ispvp = UnitIsPVP(unit);
if (UnitIsPVP("target")) then -- Target is flagged for PvP end