... | ... | @@ -7,7 +7,7 @@ The simple example below returns true if the unit is named 'Ivaria': |
|
|
return ("Ivaria" == VUHDO_unitInfo["name"])
|
|
|
```
|
|
|
|
|
|
The follow is a more complicated example which returns true only if the Priest spell 'Prayer of Mending' is off cooldown and the unit is below 90% health:
|
|
|
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;
|
... | ... | |