| ... | ... | @@ -18,7 +18,7 @@ return ("Ivaria" == VUHDO_unitInfo["name"]) |
|
|
|
The follow is a more complicated example which returns true only if the player's spell 'Prayer of Mending' is off cooldown and the unit is below 90% health:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
return ((select(2,GetSpellCooldown("Prayer of Mending")) == 0) and ((VUHDO_unitInfo["health"] / VUHDO_unitInfo["healthmax"]) < 0.9)) and true or false;
|
|
|
|
return (((C_Spell.GetSpellCooldown("Prayer of Mending") or {}).startTime == 0) and ((VUHDO_unitInfo["health"] / VUHDO_unitInfo["healthmax"]) < 0.9)) and true or false;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Checking for a Debuff Icon
|
| ... | ... | |