WoW:API UnitSex: Difference between revisions

m
Move page script moved page API UnitSex to WoW:API UnitSex without leaving a redirect
m (Move page script moved page API UnitSex to WoW:API UnitSex without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 28: Line 28:


== Details ==
== Details ==
* UnitSex("target") will return 1 (neuter/unknown) on "sheeped" mobs, no matter their "true" gender. <small>(Needs reverification after 1.11)</small>
* UnitSex("target") will return 1 (neuter/unknown) on "sheeped" mobs, no matter their "true" gender. <small>(Needs reverification after 1.11)</small>. UnitSex("player") does not return 1 on "penguinification".


* Prior to v1.11, the codes were 0=male, 1=female, 2=unknown.
* Prior to v1.11, the codes were 0=male, 1=female, 2=unknown.


== Notes ==
== Notes ==
* If "unit" doesn't exist (e.g. UnitSex("target") when you have no target), UnitSex() will return 2. (As seen on [[Talk:World of Warcraft API#API_UnitSex.28.22target.22.29_:_What_if_there_is_no_selected_target_.3F|Talk:World of Warcraft API]])
* If "unit" doesn't exist (e.g. UnitSex("target") when you have no target), UnitSex() will return 0.<br/> Previously, it would return 2. (As seen on [[Talk:World of Warcraft API#API_UnitSex.28.22target.22.29_:_What_if_there_is_no_selected_target_.3F|Talk:World of Warcraft API]])
Anonymous user