| ... | ... | @@ -26,6 +26,7 @@ return ((select(2,GetSpellCooldown("Prayer of Mending")) == 0) and ((VUHDO_unitI |
|
|
|
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
|
|
|
|
VUHDO_hasUnitDebuff(<unit ID>, <spell name|spell ID>)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Example 2
|
| ... | ... | @@ -33,7 +34,7 @@ As of VuhDo v3.168, there is a new API that must be used to determine whether a |
|
|
|
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;
|
|
|
|
return VUHDO_unitInfo["raidIcon"] == 4 and VUHDO_hasUnitDebuff(VUHDO_unitInfo["unit"], "Penetrating Cold") and true or false;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Checking for a HoT Icon
|
| ... | ... | |