Ideally in situations where you have a spell that refreshes a buff, let's take Holy Might for example, a buff you gain from casting talented Holy Strike.
It would be nice to be able to
/cast [nomybuff:Holy_Might] Holy Strike; [mybuff<10:Holy_Might] Holy Strike; Crusader Strike
Adding a similar check that is present in (my)power / (my)rawpower, but comparing to the active time left on a buff or debuff. This would also be helpful for crafting Warlock Macros and Druid Macros where you could check the duration on bleeds or DoTs before reapplying them.
I suspect the API would allow it through
Buff API:
name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("unit", [index] or ["name", "rank"][, "filter"])
Or filtering with GetPlayerBuffTimeLeft()
and
Debuff API:
name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitDebuff("unit", index or ["name", "rank"][, "filter"])
I think this change would be an invaluable addition to functionality with the addon.
Ideally in situations where you have a spell that refreshes a buff, let's take Holy Might for example, a buff you gain from casting talented Holy Strike.
It would be nice to be able to
/cast [nomybuff:Holy_Might] Holy Strike; [mybuff<10:Holy_Might] Holy Strike; Crusader StrikeAdding a similar check that is present in (my)power / (my)rawpower, but comparing to the active time left on a buff or debuff. This would also be helpful for crafting Warlock Macros and Druid Macros where you could check the duration on bleeds or DoTs before reapplying them.
I suspect the API would allow it through
Buff API:
name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("unit", [index] or ["name", "rank"][, "filter"])Or filtering with
GetPlayerBuffTimeLeft()and
Debuff API:
name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitDebuff("unit", index or ["name", "rank"][, "filter"])I think this change would be an invaluable addition to functionality with the addon.