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.

Enhancement Shaman weapon buff condition

Featured Replies

Just wondering if anyone knows a way to check for Windfury buff on weapons for Enhancement Shamans. I can't think of anything and can't seem to get any LUA scripts to work.

Edit: retV = GetWeaponEnchantInfo("hasMainHandEnchant") is the LUA I am running. Currently, it is working (if I set it to only cast if retV = 1, it won't cast), but doing /run print (GetWeaponEnchantInfo("hasMainHandEnchant")) returns nil nil nil nil and checking for nil doesn't work.

  • Author

Also having issues with checking for totems. I added a screenshot that shows the returns (with and without an active totem) but not sure how to check that return with WRobot.

post-301-0-04808800-1364721666_thumb.jpg

Hi,

 

For totem ( http://www.wowwiki.com/API_GetTotemInfo ) you need to use lua code:

haveTotem, totemName, startTime, duration = GetTotemInfo(1)
 
if (haveTotem) then 
   retV = "1"
else
   retV = "0"
end

 

For enchant weapon ( http://www.wowpedia.org/API_GetWeaponEnchantInfo ):

 

hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges, hasThrownEnchant, thrownExpiration, thrownCharges
= GetWeaponEnchantInfo()
 
if (hasMainHandEnchant) then 
   retV = "1"
else
   retV = "0"
end
  • Author

Thank you very much! I was getting close to the solution, LUA scripts can make fight classes so much more effective. And I'm slowly getting a handle on it. :)

  • 3 weeks later...
  • Author

I came up with another awesome one....

_, _, _, _, _, _, expires, _, _, _, _ = UnitDebuff("target", "Corruption") 
secs = (expires - GetTime())
if secs < 3 then 
	retV = 1
else 
	retV = 0
end

Checks the duration of the debuff you have on a target, and if it's close to expiring, it recasts it!

  • 6 months later...

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.