... | ... | @@ -13,6 +13,18 @@ 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;
|
|
|
```
|
|
|
|
|
|
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':
|
|
|
|
|
|
```lua
|
|
|
return VUHDO_unitInfo["raidIcon"] == 4 and VUHDO_getUnitCustomDebuffs()[VUHDO_unitInfo["unit"]] and VUHDO_getUnitCustomDebuffs()[VUHDO_unitInfo["unit"]]["Penetrating Cold"] and true or false;
|
|
|
```
|
|
|
|
|
|
One more example which returns true only if the unit has an active HoT Icon tracking 'Atonement':
|
|
|
|
|
|
```lua
|
|
|
return VUHDO_MY_HOTS and VUHDO_MY_HOTS[VUHDO_unitInfo["unit"]] and VUHDO_MY_HOTS[VUHDO_unitInfo["unit"]]["Atonement"] and true or false;
|
|
|
```
|
|
|
|
|
|
More example bouquets using custom flags of various kinds can be found on [wago.io](https://wago.io/p/Ivaria).
|
|
|
|
|
|
Unit information (`VUHDO_unitInfo` table):
|
... | ... | |