m
Move page script moved page API GetRaidTargetIndex to WoW:API GetRaidTargetIndex without leaving a redirect
m (→Note) |
m (Move page script moved page API GetRaidTargetIndex to WoW:API GetRaidTargetIndex without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 15: | Line 15: | ||
=== Returns === | === Returns === | ||
:;icon : Number - a value from | :;icon : Number - a value from 1 to 8, or nil, as follows: | ||
::: | :::nil = no icon | ||
:::1 = Yellow 4-point Star | :::1 = Yellow 4-point Star | ||
:::2 = Orange Circle | :::2 = Orange Circle | ||
| Line 31: | Line 31: | ||
== Note == | == Note == | ||
* Note that (at least during 1.11), GetRaidTargetIndex() will return seemingly-random indexes for units that do not exist. Always test for UnitExists() before doing GetRaidTargetIndex(). | * Note that (at least during 1.11), GetRaidTargetIndex() will return seemingly-random indexes for units that do not exist. Always test for UnitExists() before doing GetRaidTargetIndex(). | ||
: Explicit case: "raid2target" when "raid2" is offline and not targetting anything at all misbehaves. | : Explicit case: "raid2target" when "raid2" is offline and not targetting anything at all misbehaves. | ||