WoW:API UnitIsPVP

From AddOn Studio
Jump to navigation Jump to search
UnitIsPVP - Documentation by MadJester

Checks to see if a unit is flagged for PvP or not.

UnitIsPVP("unit")

Parameters

Arguments

target, player_name

Returns

Elsewhere it had been said to return a True or False , to be correct it will return 1 or nothing.

Examples

Example of correct use:

if(UnitIsPVP("target"))then

Example of incorrect use:

if(UnitIsPVP("target")=="true")then
if(UnitIsPVP("target")=="1")then

Template:WoW API