Skip to content

Request/Question on enhancement of (my)buff/(my)debuff conditionals. #88

Description

@VexiaOnline

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions