| ... | ... | @@ -21,7 +21,14 @@ The follow is a more complicated example which returns true only if the player's |
|
|
|
return ((select(2,GetSpellCooldown("Prayer of Mending")) == 0) and ((VUHDO_unitInfo["health"] / VUHDO_unitInfo["healthmax"]) < 0.9)) and true or false;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Example 2
|
|
|
|
## Checking for a Debuff Icon
|
|
|
|
|
|
|
|
As of VuhDo v3.168, there is a new API that must be used to determine whether a unit has an active Debuff Icon:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
```
|
|
|
|
|
|
|
|
### Example 2
|
|
|
|
|
|
|
|
Another example which returns true only if the unit is currently marked with a raid icon of 'Green Triangle' and also has a custom debuff active called 'Penetrating Cold':
|
|
|
|
|
| ... | ... | |