Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

  • Add optional IsMine to UnitBuff wotlk+


    Ordush
    • Version: All Product: WRobot General Type: Suggestion Status: Not Added

    It would be awesome to have IsMine as optional for checking buffs in wotlk

    name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable = UnitAura("unit", index or ["name", "rank"][, "filter"])

    Example:
    If (ObjectManager.Target.BuffTimeLeft("Vampiric Touch", true) < 1000)
    Where the true is isMine

    I know I can manually just make a lua function to check it myself, but it would be nice to have built into the api. 🙂




    User Feedback

    Recommended Comments

    Wow, i am glad to see others working on Wrath of the lich king content. Good job!

     

    Ps : IsMine was changed to UnitCaster in patch 3.1.0

    Edited by Smokie
    added a PS

    Share this comment


    Link to comment
    Share on other sites
    4 hours ago, Smokie said:

    Wow, i am glad to see others working on Wrath of the lich king content. Good job!

     

    Ps : IsMine was changed to UnitCaster in patch 3.1.0

    It was just an example, I'm  pretty sure that Droidz reads from memory instead of using the lua function. Was just to explain what I meant. 🙂

    Share this comment


    Link to comment
    Share on other sites

    Hey,

    In Wotlk you have Aura.Owner.

    You can use it like:

    if (ObjectManager.Target.GetBuffs("Vampiric Touch").Any(a => a.Owner == ObjectManager.Me.Guid && a.TimeLeft < 1000))

     

    Share this comment


    Link to comment
    Share on other sites
    9 minutes ago, Droidz said:

    Hey,

    In Wotlk you have Aura.Owner.

    You can use it like:

    if (ObjectManager.Target.GetBuffs("Vampiric Touch").Any(a => a.Owner == ObjectManager.Me.Guid && a.TimeLeft < 1000))

     

    Very nice!

    Share this comment


    Link to comment
    Share on other sites
    On 5/8/2020 at 2:39 PM, Droidz said:

    Hey,

    In Wotlk you have Aura.Owner.

    You can use it like:

    if (ObjectManager.Target.GetBuffs("Vampiric Touch").Any(a => a.Owner == ObjectManager.Me.Guid && a.TimeLeft < 1000))

     

    This returns false if the target doesn't have Vampiric Touch
    Have been trying to make a workaround without luck.
    if ((ObjectManager.Target.GetBuffs(_VampiricTouch.Name).Any(a => a.Owner == ObjectManager.Me.Guid && a.TimeLeft < (1000 + ObjectManager.Me.GlobalCooldownTimeLeft + 1500)) || ObjectManager.Me.Guid != ObjectManager.Target.BuffCastedBy(_VampiricTouch.Name)))

    Nevermind lol the last code line i wrote just here works.

    Edited by Ordush

    Share this comment


    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...