Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

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

TheSmokie

Banned
(edited)

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

Ordush

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

TheSmokie

Banned

I know, just thought of adding a little info.

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

 

Ordush

Elite user
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!

Ordush

Elite user
(edited)
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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.