WoW API: UnitIsFeignDeath

From AddOn Studio
Revision as of 16:46, 28 October 2009 by WoWWiki>Tjohnston1745 (Created page with 'Returns whether a unit is feigning death. Only provides valid data for friendly units. Signature: isFeign = UnitIsFeignDeath("unit") Arguments: unit - A unit to query (string, …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < UnitIsFeignDeath


Returns whether a unit is feigning death.

isFeign = UnitIsFeignDeath("unit");

Parameters

Arguments

("unit")
unit
String - The UnitId of the unit to check

Returns

isFeign
Flag - Returns 1 if the unit is feigning death, nil otherwise.

Details

Only provides valid data for friendly units.
Does not work for unit "player", see UnitAura function
Example
if UnitAura("player", "Feign Death") == "Feign Death" then .....