Jump to content
  • Add optional IsMine to UnitBuff wotlk+

    • 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"])

    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

    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. ?

    Link to comment
    Share on other sites

    On 5/8/2020 at 2:39 PM, Droidz said:


    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
    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.

    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...